Skip to content

Commit

Permalink
chore: types
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Apr 28, 2023
1 parent 2d090cb commit 966eca5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/dynamic-import-to-glob.ts
@@ -1,6 +1,4 @@
import path from 'node:path'
import type { AcornNode as AcornNode2 } from 'rollup'
export type AcornNode<T = any> = AcornNode2 & Record<string, T>

const example = 'For example: import(`./foo/${bar}.js`).'

Expand Down
1 change: 1 addition & 0 deletions src/types.ts
@@ -0,0 +1 @@
type AcornNode<T = any> = import('rollup').AcornNode & Record<string, T>
2 changes: 0 additions & 2 deletions src/utils.ts
@@ -1,10 +1,8 @@
import path from 'node:path'
import type { AcornNode as AcornNode2 } from 'rollup'
import {
singlelineCommentsRE,
multilineCommentsRE,
} from 'vite-plugin-utils/constant'
export type AcornNode<T = any> = AcornNode2 & Record<string, T>

// ------------------------------------------------- RegExp

Expand Down

0 comments on commit 966eca5

Please sign in to comment.