@voerkai18n/utils
Version:
utils for voerkai18n
22 lines (16 loc) • 592 B
text/typescript
import { Lang, NapiConfig, Range } from "@ast-grep/napi"
import { VoerkaI18nNamespaces } from "@voerkai18n/runtime"
export type ExtractSection = {
name? : string,
type? : 'ast' | 'regex',
extract? : RegExp | { exclude: RegExp | RegExp[], include: RegExp | RegExp[] },
regex? : RegExp,
ast? : NapiConfig
language? : Lang
}
export type ExtractSections = ExtractSection[]
export type ExtractorOptions = ExtractSection & {
file: string,
namespaces: VoerkaI18nNamespaces
sectionFlag: string
}