Skip to content

Commit

Permalink
fix: declare types in .ts files (#3840)
Browse files Browse the repository at this point in the history
`.d.ts` files are not type checked as they are usually machine generated.

Switch to using `.ts` files instead so we get some compiler safety.

Refs: ipfs/aegir#849
  • Loading branch information
achingbrain authored Aug 27, 2021
1 parent c8a0bfc commit 025914e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types.d.ts → src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Agent as HttpAgent } from 'http'
import { Agent as HttpsAgent } from 'https'
import { Multiaddr } from 'multiaddr'
import type { Agent as HttpAgent } from 'http'
import type { Agent as HttpsAgent } from 'https'
import type { Multiaddr } from 'multiaddr'
import type { BlockCodec } from 'multiformats/codecs/interface'
import type { MultihashHasher } from 'multiformats/hashes/interface'
import type { MultibaseCodec } from 'multiformats/bases/interface'
Expand Down

0 comments on commit 025914e

Please sign in to comment.