summaryrefslogtreecommitdiff
path: root/deno_typescript
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2019-11-14 15:05:36 -0500
committerGitHub <noreply@github.com>2019-11-14 15:05:36 -0500
commit4902a1cacb0348efde9ab342172f2706ac27e837 (patch)
treeabbc0dbdcc03b232d01274cea0940a377223a767 /deno_typescript
parent8b90b8e88325d28fe41d8312ea91417b6e66a12e (diff)
Turn on TS strict mode for deno_typescript (#3330)
Diffstat (limited to 'deno_typescript')
-rw-r--r--deno_typescript/lib.deno_core.d.ts2
-rw-r--r--deno_typescript/lib.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/deno_typescript/lib.deno_core.d.ts b/deno_typescript/lib.deno_core.d.ts
index c3a20eb08..549665543 100644
--- a/deno_typescript/lib.deno_core.d.ts
+++ b/deno_typescript/lib.deno_core.d.ts
@@ -21,7 +21,7 @@ interface EvalErrorInfo {
}
declare interface DenoCore {
- print(s: string, isErr?: boolean);
+ print(s: string, isErr?: boolean): void;
dispatch(
opId: number,
control: Uint8Array,
diff --git a/deno_typescript/lib.rs b/deno_typescript/lib.rs
index 56072ebdc..e53a4243d 100644
--- a/deno_typescript/lib.rs
+++ b/deno_typescript/lib.rs
@@ -127,6 +127,7 @@ pub fn compile_bundle(
let config_json = serde_json::json!({
"compilerOptions": {
+ "strict": true,
"declaration": true,
"lib": ["esnext"],
"module": "amd",