lammu-types
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

公共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";

Readme

Keywords

Package Sidebar

Install

npm i lammu-types

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

3.34 kB

Total Files

7

Last publish

Collaborators

  • lammu