Shougo / ddc-source-lsp

lsp source for ddc.vim
Other
66 stars 20 forks source link

Clean no-explicit-any problems from 'deno lint' #15

Closed haruyama closed 2 years ago

haruyama commented 2 years ago

Clean the following problems.

% deno lint --unstable denops

(no-explicit-any) `any` type is not allowed
        const labels = params.kindLabels as any;
                                            ^^^
    at /home/haruyama/work/Vim/ddc-nvim-lsp/denops/@ddc-sources/nvimlsp.ts:171:44

    hint: Use a specific type other than `any`
    help: for further information visit https://lint.deno.land/#no-explicit-any

(no-explicit-any) `any` type is not allowed
        item.kind = (kind in labels as any ? labels[kind] : kind) as string;
                                       ^^^
    at /home/haruyama/work/Vim/ddc-nvim-lsp/denops/@ddc-sources/nvimlsp.ts:173:39

    hint: Use a specific type other than `any`
    help: for further information visit https://lint.deno.land/#no-explicit-any

Found 2 problems
Checked 1 file
Shougo commented 2 years ago

OK.