mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
20 lines
602 B
TypeScript
20 lines
602 B
TypeScript
// Compile with pnpm tsc test/e2e/app-dir/server-source-maps/fixtures/default/internal-pkg/ignored.ts --sourceMap --target esnext
|
|
// tsc compile errors can be ignored
|
|
// Then ensure `ignoreList` references all `sources`
|
|
type Fn<T> = () => T
|
|
export function runInternalIgnored<T>(fn: Fn<T>): T {
|
|
return fn()
|
|
}
|
|
|
|
export function runSetOfSets(setOfSets: Set<Set<Fn<any>>>): void {
|
|
setOfSets.forEach((set) => {
|
|
set.forEach((fn) => {
|
|
fn()
|
|
})
|
|
})
|
|
}
|
|
|
|
export function runHiddenSetOfSets(message: string): void {
|
|
runSetOfSets(new Set([new Set([() => console.error(new Error(message))])]))
|
|
}
|