Skip to content

Commit

Permalink
Fix type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Nov 21, 2022
1 parent 5113edb commit 3cac84a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/errors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PluginCreator } from '../lib/postcss.js'

const plugin: PluginCreator<{ a: number }> = opts => {
// THROWS Object is possibly 'undefined'
// THROWS 'opts' is possibly 'undefined'
console.log(opts.a)
// THROWS Property 'b' does not exist on type '{ a: number; }'
console.log(opts?.b)
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"allowJs": true,
"strict": true,
"noEmit": true,
"skipLibCheck": true,
"esModuleInterop": true
}
}

0 comments on commit 3cac84a

Please sign in to comment.