* ⚡ 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
21 lines
504 B
TypeScript
21 lines
504 B
TypeScript
export interface ExtensionMap {
|
|
typeName: string;
|
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
functions: Record<string, Function & { doc?: DocMetadata }>;
|
|
}
|
|
|
|
export type NativeDoc = {
|
|
typeName: string;
|
|
properties?: Record<string, { doc?: DocMetadata }>;
|
|
functions: Record<string, { doc?: DocMetadata }>;
|
|
};
|
|
|
|
export type DocMetadata = {
|
|
name: string;
|
|
returnType: string;
|
|
description?: string;
|
|
aliases?: string[];
|
|
args?: Array<{ name: string; type?: string }>;
|
|
docURL?: string;
|
|
};
|