/comment-directives.ts Secret
Last active
March 2, 2022 15:14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lib/util.js - Untyped JavaScript file | |
export const somethingAwesome = makeSomethingAwesome(); | |
export const hof = fn => fn(somethingSpecial() as MyInternalType) | |
// app/index.ts - TypeScript file | |
// @ts-ignore Add types for util dependency | |
import { somethingAwesome, hof } from 'lib/util'; | |
hof((input: never) => { /* ... */ }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment