Created
November 19, 2022 00:41
-
-
Save AnthonyLzq/19d59f007827aad263d2bfe9aa5aca1f to your computer and use it in GitHub Desktop.
Global .d.ts file that will work using declare global
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
import { MqttClient } from 'mqtt' | |
declare global { | |
interface Route { | |
sub: (client: MqttClient) => void | |
PUB_TOPIC: string | |
SUB_TOPIC: string | |
} | |
} | |
export {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment