Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

feat: enhance framework types #545

Merged
merged 2 commits into from
Sep 26, 2022
Merged

Conversation

luhc228
Copy link
Member

@luhc228 luhc228 commented Sep 21, 2022

增加框架内置的 TS 类型提示,比如:

  • CSS Modules
  • 图片、字体、媒体等文件
  • web worker
  • 环境变量(process.env.xxx)

用户模板只需要在 src/typings.d.ts 中引入以下代码即可:

/// <reference path="@ice/app/types" />

@vercel
Copy link

vercel bot commented Sep 21, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ice-v3 ✅ Ready (Inspect) Visit Preview Sep 21, 2022 at 8:07AM (UTC)

@luhc228 luhc228 changed the title feat: enhance inner types feat: enhance framework inner types Sep 22, 2022
@luhc228 luhc228 changed the title feat: enhance framework inner types feat: enhance framework types Sep 22, 2022
@luhc228 luhc228 requested a review from chenjun1011 September 26, 2022 02:49
@ClarkXia ClarkXia merged commit c0971df into release-next Sep 26, 2022
@ClarkXia ClarkXia deleted the feat/enhance-inner-types branch September 26, 2022 08:57
@ClarkXia ClarkXia mentioned this pull request Sep 27, 2022
12 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants