Skip to content

Commit

Permalink
fix: added a missing "import type" statement to the TS SDK (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaster authored Apr 27, 2021
1 parent 4d64e33 commit 59c0f3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/sdk-codegen/src/typescript.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class TypescriptGen extends CodeGen {
/** creates a full @looker/sdk-rtl import statement if one is required */
rtlImportStatement() {
const rtl = this.rtlImports()
return rtl ? `\nimport { ${rtl} } from '@looker/sdk-rtl'\n` : ''
return rtl ? `\nimport type { ${rtl} } from '@looker/sdk-rtl'\n` : ''
}

methodsPrologue(_indent: string) {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/3.1/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* 302 API models: 188 Spec, 46 Request, 51 Write, 17 Enum
*/

import { IDictionary, Url, DelimArray } from '@looker/sdk-rtl'
import type { IDictionary, Url, DelimArray } from '@looker/sdk-rtl'

/*
* NOTE: Do not edit this file generated by Looker SDK Codegen for Looker 21.4 API 3.1
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/4.0/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* 329 API models: 205 Spec, 50 Request, 56 Write, 18 Enum
*/

import { IDictionary, Url, DelimArray } from '@looker/sdk-rtl'
import type { IDictionary, Url, DelimArray } from '@looker/sdk-rtl'

/*
* NOTE: Do not edit this file generated by Looker SDK Codegen for Looker 21.4 API 4.0
Expand Down

0 comments on commit 59c0f3d

Please sign in to comment.