@marko/language-tools
Advanced tools
| /** | ||
| * Returns a PascalCase identifier to name a component's default export binding, | ||
| * but only when the file is auto-discoverable as a Marko tag (through a | ||
| * `components`/`tags` directory) and the tag name normalizes to a valid | ||
| * identifier. Otherwise `undefined`, so the extractor keeps a plain anonymous | ||
| * `export default`. Naming the binding lets auto-imports read `import MyButton` | ||
| * rather than TypeScript's file-derived `MyButtonMarko`. | ||
| */ | ||
| export declare function getComponentName(filePath: string): string | undefined; |
@@ -78,2 +78,4 @@ // This is a typescript file which defines utilities used in the output of the typescript extractor. | ||
| export function mergeClasses<T>(...values: NoInfer<T>[]): T; | ||
| export function state<Component>( | ||
@@ -80,0 +82,0 @@ component: Component, |
+1
-1
| { | ||
| "name": "@marko/language-tools", | ||
| "version": "2.6.0", | ||
| "version": "2.6.1", | ||
| "description": "Marko Language Tools", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
354668
1.09%29
3.57%10791
0.8%