Skip to content

Commit

Permalink
fix: fix defineConfig types
Browse files Browse the repository at this point in the history
  • Loading branch information
imal1 committed Sep 19, 2024
1 parent 0186dd4 commit c273fb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/iconfont.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from '../src/core/unplugin'
import { defineConfig } from '../src'

export default defineConfig([
{
Expand Down
2 changes: 0 additions & 2 deletions src/core/unplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { loadConfig } from 'unconfig'
import { createUnplugin } from 'unplugin'
import { downloadSymbol, generateDts, generateJson, getURLContent, injectHtml } from './utils'

export const defineConfig = (configs: Options): Options => configs

let frameConfig: any

const PLUGIN_NAME = 'unplugin-iconfont'
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ export interface IconfontConfig {
export type IconFontOptions = Partial<IconfontConfig> & IconfontConfig[]

export type Options = Partial<IconFontOptions> & { configFile?: string }

export const defineConfig = (configs: Options): Options => configs

0 comments on commit c273fb3

Please sign in to comment.