[postcss-icss-values] Add Typescript definitions.

This commit is contained in:
Jeow Li Huan
2018-11-01 23:07:01 +08:00
committed by huan086
parent 6b26866504
commit 92eb59495c
5 changed files with 44 additions and 0 deletions

10
types/postcss-icss-values/index.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
// Type definitions for postcss-icss-values 2.0
// Project: https://github.com/css-modules/postcss-icss-values
// Definitions by: Jeow Li Huan <https://github.com/huan086>
// Definitions: https://github.com/huan086/postcss-plugins-typings
// TypeScript Version: 2.2
import { Plugin } from "postcss";
declare const values: Plugin<{}>;
export = values;

View File

@@ -0,0 +1,6 @@
{
"private": true,
"dependencies": {
"postcss": "7.x.x"
}
}

View File

@@ -0,0 +1,4 @@
import values = require("postcss-icss-values");
import { Transformer } from "postcss";
const ap1: Transformer = values();

View File

@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"postcss-icss-values-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }