Skip to content

Commit

Permalink
fix(types): fix type errors (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv authored Aug 28, 2023
1 parent 5668fbb commit 7941238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/compilers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { QwikCompiler } from './qwik'
import { RawCompiler } from './raw'
import { SolidCompiler } from './solid'
import { SvelteCompiler } from './svelte'
import type { Compiler } from './types'
import type { Compiler, CustomCompiler } from './types'
import { Vue2Compiler } from './vue2'
import { Vue3Compiler } from './vue3'
import { WebComponentsCompiler } from './web-components'

export const compilers: Record<ResolvedOptions['compiler'], Compiler> = {
export const compilers: Record<Exclude<ResolvedOptions['compiler'], CustomCompiler>, Compiler> = {
'astro': AstroCompiler,
'jsx': JSXCompiler,
'marko': MarkoCompiler,
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ export interface Options {
iconSource?: 'legacy' | 'modern' | 'auto'
}

export interface ResolvedOptions extends Omit<Required<Options>, 'iconSource'> {}
export type ResolvedOptions = Omit<Required<Options>, 'iconSource' | 'transform'> & Pick<Options, 'transform'>

0 comments on commit 7941238

Please sign in to comment.