Skip to content

Commit

Permalink
🦄 refactor: 修改类型声明文件的位置
Browse files Browse the repository at this point in the history
  • Loading branch information
batu1579 committed Oct 19, 2022
1 parent f14a77a commit f18f497
Show file tree
Hide file tree
Showing 26 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"module": "ES2015",
"strict": true,
"typeRoots": [
"src/types",
"types",
"node_modules/@types"
],
"outDir": "build",
Expand Down
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions types/canvas.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare module 'canvas' {
global {
/**
* @description: canvas 提供了使用画布进行 2D 画图的支持,可用于简单的小游戏开发或者图片编辑。使用 canvas 可以轻松地在一张图片或一个界面上绘制各种线与图形。
*
* **注意!:**
*
* - Canvas 模块本质上是将 [Android Canvas] 进行包装后的结果。本模块的部分用法和文档暂时缺失,但可以在 Android 文档中找到。请参阅 Android Canvas、Android Paint 与 Android Path 了解更多细节。
*
* [Android Canvas]: https://developer.android.google.cn/reference/android/graphics/Canvas
*/
const canvas: Canvas;

interface Canvas {

}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f18f497

Please sign in to comment.