Skip to content

tymzap/typescript-declaration-files-example

Repository files navigation

typescript-declaration-files-example

This repository contains examples of common simple operations on TypeScript definition files (.d.ts). Feel free to use it as small cheatsheet or source of inspiration for your projects.

Examples list

  • test/is-dark-color.ts: define missing types for external library
  • test/dogs.ts: define types for untyped .js and .json project files
  • test/environment.ts: customize project environment types (for example add strongly typed environment variables)
  • test/axios.ts: extend external library types
  • test/i18n-js.ts: override external library types

About

Examples of common simple operations on TypeScript definition files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published