main.ts:
import "https://deno.land/x/xhr@0.1.2/mod.ts";
import AV from "https://esm.sh/leancloud-storage@4.12.0?target=es2021";
import * as leanAdapters from "https://esm.sh/@leancloud/platform-adapters-node@1.5.2?target=es2021";
AV.setAdapters(leanAdapters);
// Your code here
配置文件deno.jsonc:
{
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
"compilerOptions": {
"lib": [
"deno.ns",
"deno.unstable",
"dom",
"dom.iterable",
"dom.asynciterable"
],
"strict": true
}
}