diff --git a/deno.ts b/deno.ts index 5a33b5f15..47d8f4e76 100644 --- a/deno.ts +++ b/deno.ts @@ -1,7 +1,7 @@ // Bootstrap yargs for Deno platform: import denoPlatformShim from './lib/platform-shims/deno.ts' import { YargsWithShim } from './build/lib/yargs-factory.js' -import { YargsInstance as YargsType } from './build/lib/yargs-factory.d.ts' +import type { YargsInstance as YargsType } from './build/lib/yargs-factory.d.ts' const WrappedYargs = YargsWithShim(denoPlatformShim) diff --git a/types.ts b/types.ts index f3dba48db..5c046d378 100644 --- a/types.ts +++ b/types.ts @@ -1,7 +1,7 @@ // expose types for the benefit of Deno. -import { YargsInstance as YargsType, Arguments } from './build/lib/yargs-factory.d.ts' +import type { YargsInstance as YargsType, Arguments } from './build/lib/yargs-factory.d.ts' -export { +export type { Arguments, YargsType }