Bilibili-Evolved/webpack/inject-metadata/types.ts
2022-06-15 20:25:42 +08:00

11 lines
253 B
TypeScript

import {
ObjectExpression,
ObjectProperty,
} from '@babel/types'
export interface InjectMetadataContext {
expression: ObjectExpression
filename: string
}
export type InjectMetadataAction = ((context: InjectMetadataContext) => ObjectProperty[])