Skip to content

Commit 3cac84a

Browse files
committed
Fix type tests
1 parent 5113edb commit 3cac84a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

test/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { PluginCreator } from '../lib/postcss.js'
22

33
const plugin: PluginCreator<{ a: number }> = opts => {
4-
// THROWS Object is possibly 'undefined'
4+
// THROWS 'opts' is possibly 'undefined'
55
console.log(opts.a)
66
// THROWS Property 'b' does not exist on type '{ a: number; }'
77
console.log(opts?.b)

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"allowJs": true,
66
"strict": true,
77
"noEmit": true,
8+
"skipLibCheck": true,
89
"esModuleInterop": true
910
}
1011
}

0 commit comments

Comments
 (0)