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.
test/is-dark-color.ts
: define missing types for external librarytest/dogs.ts
: define types for untyped.js
and.json
project filestest/environment.ts
: customize project environment types (for example add strongly typed environment variables)test/axios.ts
: extend external library typestest/i18n-js.ts
: override external library types