D
Deno

help

typescript type definition for deno.json

Sshultz10/2/2023
Does it exist, and where can I get it?
DAHDeno AI Helper10/2/2023
The documentation does not provide a specific TypeScript type definition for a deno.json file. However, it does mention that Deno supports TypeScript without additional tooling and treats TypeScript as a first-class language. If you're looking for a way to configure Deno's behavior, you might be referring to the tsconfig.json file, which is a common way to specify compiler options for a TypeScript project. Deno respects these configurations when running TypeScript code. If you're looking for type definitions for Deno's built-in functions and objects, you can use the deno types command to generate a lib.deno.d.ts file that contains all type declarations for the Deno platform. If you're looking for a way to provide type definitions for a JavaScript module, the documentation describes several methods, such as using a triple-slash directive, the X-TypeScript-Types header, or ambient/global types. If you need more specific information, could you please provide more details about what you're trying to achieve? 🦕
Jjavi10/2/2023
You can get the json schema, which is basically the same here
GitHub
deno/cli/schemas/config-file.v1.json at main · denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
Kking8fisher10/2/2023
Cool!

Looking for more? Join the community!