🌐 AI搜索 & 代理 主页
Skip to content

@deno-types does not work on first load #97

@Ciantic

Description

@Ciantic

postcsstest.ts

import autoprefixer from "https://jspm.dev/autoprefixer";

// @deno-types="./postcss.d.ts"
import postcss from "https://jspm.dev/postcss";

postcss().use(autoprefixer).process(".something { appearance: none; }", {
    from: undefined
}).then((f: any) => {
    console.log(f.css);
})

postcss.d.ts

export default function(): any;

VSCode problem:

image

Notice that it runs correctly, and deno understands the @deno-types just fine, it's just this VSCode extension that doesn't understand these.

Also I think this is the reason for errors elsewhere, e.g. keroxp/servest#133

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions