Skip to content

Commit

Permalink
build(devs-infra): expose TsJestAstTransformer as public type
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed Feb 3, 2021
1 parent a178d71 commit d8835f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/config/config-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import type {
BabelConfig,
BabelJestTransformer,
ProjectConfigTsJest,
TsJestAstTransformer,
TsJestDiagnosticsCfg,
TsJestGlobalOptions,
TTypeScript,
Expand Down Expand Up @@ -90,12 +91,6 @@ const toDiagnosticCodeList = (items: (string | number)[], into: number[] = []):
return into
}

interface TsJestAstTransformer {
before: AstTransformerDesc[]
after: AstTransformerDesc[]
afterDeclarations: AstTransformerDesc[]
}

export class ConfigSet {
/**
* Use by e2e, don't mark as internal
Expand Down
6 changes: 6 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,9 @@ export interface AstTransformerDesc<T = Record<string, unknown>> {
): _ts.TransformerFactory<_ts.SourceFile> | _ts.TransformerFactory<_ts.Bundle | _ts.SourceFile>
options?: T
}

export interface TsJestAstTransformer {
before: AstTransformerDesc[]
after: AstTransformerDesc[]
afterDeclarations: AstTransformerDesc[]
}

0 comments on commit d8835f5

Please sign in to comment.