0.2.1 • Published 10 months ago

lammu-types v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

公共ts类型

index.d.ts导出所有的.d.ts(除global.d.ts),方便使用 global.d.ts用于给项目全局注册类型, 一般不定义,定义的话要考虑多端通用

安装

npm i lammu-types -S

引入全局类型, 在项目的.d.ts文件头部加上这一个引用

/// <reference types="lammu-types/global" />

直接使用

import type { TreeItem } from "lammu-types";

从子模块导入

import type { TreeItem } from "lammu-types/tree";
0.2.1

10 months ago

0.1.1

10 months ago