Skip to content

关于环境变量配置,新用umi,有几个问题 #8304

Answered by fz6m
iHaroro asked this question in Q&A
Discussion options

You must be logged in to vote

create file ./src/global.d.ts :

// ./src/global.d.ts

declare global {
    const FOO: string
}

export {}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@iHaroro
Comment options

Answer selected by iHaroro
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants