Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Jan 9, 2025
1 parent c4f447d commit a20f6a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/project_references/lib_b/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ts_project(
srcs = ["index.ts"],
composite = True,
declaration = True,
isolated_typecheck = True,
extends = "//examples/project_references:tsconfig-base",
deps = ["//examples/project_references/lib_a"],
)
Expand Down
2 changes: 1 addition & 1 deletion examples/project_references/lib_b/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { a } from '../lib_a'

export function sayHello(f: string) {
export function sayHello(f: string): void {
console.log(a + f)
}
5 changes: 4 additions & 1 deletion examples/project_references/lib_b/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../tsconfig-base.json",
"references": [{ "path": "../lib_a" }],
"exclude": ["*.spec.ts"]
"exclude": ["*.spec.ts"],
"compilerOptions": {
"isolatedDeclarations": true
}
}

0 comments on commit a20f6a2

Please sign in to comment.