Slide 16
Slide 16 text
slow types の検出 (2)
● deno.json に name, verison, exports があるとチェックが走るのを利用
○ deno.json configuration file | Deno Docs
https://docs.deno.com/runtime/manual/getting_started/configuration_file
● lint コマンドをつかう $ deno lint --config jsr.json
$ deno lint --config jsr.json
error[no-slow-types]: missing explicit type in the public API
--> /home/karad/study/jsr/greet/mod.ts:25:14
|
25 | export const GLOBAL_ID = crypto.randomUUID();
| ^^^^^^^^^ this symbol is missing an explicit type
= hint: add an explicit type annotation to the symbol
info: all symbols in the public API must have an explicit type
docs: https://jsr.io/go/slow-type-missing-explicit-type
Found 1 problem
Checked 1 file