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

0.5.14 • Public • Published

umi-types

Type definitions for umi.

NPM version Build Status NPM downloads

Why

Installation

$ yarn add umi-types

Usage

import { IApi } from 'umi-types';
 
export default function(api: IApi) {
  api.log.success('hello');
}
import { IApi, IModifyHTMLWithASTFunc } from 'umi-types';
 
export default function(api: IApi) {
  const appendHead: IModifyHTMLWithASTFunc = ($, { route, getChunkPath }) => {
    $('head').append(`<script src="${getChunkPath('a.js')}"></script>`);
  };
  api.modifyHTMLWithAST(appendHead);
}

LICENSE

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.5.14327latest
0.5.11-beta.10next

Version History

VersionDownloads (Last 7 Days)Published
0.5.14327
0.5.136
0.5.121
0.5.110
0.5.11-beta.10
0.5.100
0.5.93
0.5.80
0.5.70
0.5.60
0.5.51
0.5.5-beta.10
0.5.40
0.5.32
0.5.20
0.5.10
0.5.01
0.4.113
0.4.00
0.4.0-beta.40
0.4.0-beta.30
0.4.0-beta.20
0.4.0-beta.10
0.3.17157
0.3.160
0.3.151
0.3.140
0.3.130
0.3.121
0.3.110
0.3.101
0.3.90
0.3.80
0.3.70
0.3.61
0.3.50
0.3.41
0.3.33
0.3.20
0.3.10
0.3.00
0.2.054
0.1.23
0.1.10

Package Sidebar

Install

npm i umi-types

Weekly Downloads

576

Version

0.5.14

License

MIT

Unpacked Size

34.7 kB

Total Files

8

Last publish

Collaborators

  • sorrycc
  • yutingzhao1991