@ast-grep/napi
Version:
Search and Rewrite code at large scale using precise AST pattern
15 lines (13 loc) • 691 B
TypeScript
// -----Type Only Export!-----//
export type { FileOption, FindConfig, NapiConfig } from './types/config'
export type { DynamicLangRegistrations } from './types/registerDynamicLang'
export type { Edit, Pos, Range } from './types/sgnode'
// Only Rule here. User can use Rule['pattern'], e.g., to get the type of subfield.
export type { Rule } from './types/rule'
// -----Runtime Value Export!-----//
export { findInFiles, kind, parse, parseAsync, parseFiles, pattern } from './types/api'
export { Lang } from './types/lang'
export { registerDynamicLanguage } from './types/registerDynamicLang'
export { SgNode, SgRoot } from './types/sgnode'
// deprecated
export * from './types/deprecated'