* ⚡ Implemented support for documentation links in autocomplete tooltips * ⚡ Added support for arguments and code stying in autocomplete documentation. Added build-in string functions docs. * ⚡ Added support for args without types in autocomplete, Added array native functions. * ⚡ Added native Number and Object methods to autocomplete * ⚡ Added support for native properties in autocomplete * 📚 Added comment for next phase * ✔️ Updating tests to account for native autocomplete options. Fixing lint errros. * 👌 Addressing design review comments * 🎨 Using design-system tokens instead of colors for autocomplete
28 lines
736 B
TypeScript
28 lines
736 B
TypeScript
import type { NativeDoc } from '@/Extensions/Extensions';
|
|
|
|
export const objectMethods: NativeDoc = {
|
|
typeName: 'Object',
|
|
functions: {
|
|
keys: {
|
|
doc: {
|
|
name: 'keys',
|
|
description:
|
|
"Returns an array of a given object's own enumerable string-keyed property names.",
|
|
docURL:
|
|
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys',
|
|
returnType: 'Array',
|
|
},
|
|
},
|
|
values: {
|
|
doc: {
|
|
name: 'values',
|
|
description:
|
|
"Returns an array of a given object's own enumerable string-keyed property values.",
|
|
docURL:
|
|
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values',
|
|
returnType: 'Array',
|
|
},
|
|
},
|
|
},
|
|
};
|