mirror of
https://github.com/denoland/deno
synced 2024-09-19 08:02:31 +00:00
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
error[no-slow-types]: missing explicit return type in the public API
|
|
--> [WILDCARD]a.ts:1:17
|
|
|
|
|
1 | export function add(a: number, b: number) {
|
|
| ^^^ this function is missing an explicit return type
|
|
= hint: add an explicit return type to the function
|
|
|
|
info: all functions in the public API must have an explicit return type
|
|
docs: https://jsr.io/go/slow-type-missing-explicit-return-type
|
|
|
|
|
|
error[no-slow-types]: missing explicit return type in the public API
|
|
--> [WILDCARD]b.ts:1:17
|
|
|
|
|
1 | export function addB(a: number, b: number) {
|
|
| ^^^^ this function is missing an explicit return type
|
|
= hint: add an explicit return type to the function
|
|
|
|
info: all functions in the public API must have an explicit return type
|
|
docs: https://jsr.io/go/slow-type-missing-explicit-return-type
|
|
|
|
|
|
error[no-slow-types]: missing explicit return type in the public API
|
|
--> [WILDCARD]d.ts:2:17
|
|
|
|
|
2 | export function addD(a: number, b: number) {
|
|
| ^^^^ this function is missing an explicit return type
|
|
= hint: add an explicit return type to the function
|
|
|
|
info: all functions in the public API must have an explicit return type
|
|
docs: https://jsr.io/go/slow-type-missing-explicit-return-type
|
|
|
|
|
|
Found 3 problems
|
|
Checked 1 file
|