@kubb/ts-codegen
Advanced tools
Comparing version
@@ -46,2 +46,7 @@ import ts from 'typescript'; | ||
}): ts.TypeAliasDeclaration; | ||
/** | ||
* In { propertyName: string; name?: string } is `name` being used to make the type more unique when multiple same names are used. | ||
* @example `import { Pet as Cat } from './Pet'` | ||
* | ||
*/ | ||
declare function createImportDeclaration({ name, path, isTypeOnly, }: { | ||
@@ -48,0 +53,0 @@ name: string | Array<ts.Identifier | string | { |
{ | ||
"name": "@kubb/ts-codegen", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Generator ts-codegen", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -120,3 +120,7 @@ import ts from 'typescript' | ||
} | ||
/** | ||
* In { propertyName: string; name?: string } is `name` being used to make the type more unique when multiple same names are used. | ||
* @example `import { Pet as Cat } from './Pet'` | ||
* | ||
*/ | ||
export function createImportDeclaration({ | ||
@@ -123,0 +127,0 @@ name, |
33677
1.14%833
1.22%