@types/css-modules
Advanced tools
Comparing version 1.0.0 to 1.0.1
// Type definitions for css-modules 1.0 | ||
// Project: https://github.com/css-modules/css-modules | ||
// Definitions by: NeekSandhu <https://github.com/NeekSandhu> | ||
// Remco Haszing <https://github.com/remcohaszing> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
interface Stringifyable { | ||
interface CSSModule { | ||
/** | ||
* Stringifies the imported stylesheet for use with inline style tags | ||
* Returns the specific selector from imported stylesheet as string. | ||
*/ | ||
toString(): string; | ||
} | ||
interface SelectorNode { | ||
/** | ||
* Returns the specific selector from imported stylesheet as string | ||
*/ | ||
[key: string]: string; | ||
@@ -21,19 +16,47 @@ } | ||
declare module '*.css' { | ||
const styles: SelectorNode & Stringifyable; | ||
export default styles; | ||
/** | ||
* A CSS module. | ||
*/ | ||
const styles: CSSModule; | ||
export = styles; | ||
} | ||
declare module '*.scss' { | ||
const styles: SelectorNode & Stringifyable; | ||
export default styles; | ||
/** | ||
* An SCSS based CSS module. | ||
* | ||
* https://sass-lang.com | ||
*/ | ||
const styles: CSSModule; | ||
export = styles; | ||
} | ||
declare module '*.sass' { | ||
const styles: SelectorNode & Stringifyable; | ||
export default styles; | ||
/** | ||
* A Sass based CSS module. | ||
* | ||
* https://sass-lang.com | ||
*/ | ||
const styles: CSSModule; | ||
export = styles; | ||
} | ||
declare module '*.less' { | ||
const styles: SelectorNode & Stringifyable; | ||
export default styles; | ||
/** | ||
* A Less based CSS module. | ||
* | ||
* http://lesscss.org | ||
*/ | ||
const styles: CSSModule; | ||
export = styles; | ||
} | ||
declare module '*.styl' { | ||
/** | ||
* A Stylus based CSS module. | ||
* | ||
* https://stylus-lang.com | ||
*/ | ||
const styles: CSSModule; | ||
export = styles; | ||
} |
{ | ||
"name": "@types/css-modules", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "TypeScript definitions for css-modules", | ||
@@ -9,15 +9,22 @@ "license": "MIT", | ||
"name": "NeekSandhu", | ||
"url": "https://github.com/NeekSandhu" | ||
"url": "https://github.com/NeekSandhu", | ||
"githubUsername": "NeekSandhu" | ||
}, | ||
{ | ||
"name": "Remco Haszing", | ||
"url": "https://github.com/remcohaszing", | ||
"githubUsername": "remcohaszing" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/css-modules" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "07a666dbd6f9fac5317cf11c4127250675953d721f2011d265479b9f75e1da77", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "99d54f1a69b13235b8f4df5b1ddbe08fc854773a6ac6fbb0200556420ae8b3a8", | ||
"typeScriptVersion": "3.2" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-modules | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-modules. | ||
Additional Details | ||
* Last updated: Tue, 18 Jul 2017 13:54:28 GMT | ||
### Additional Details | ||
* Last updated: Thu, 15 Oct 2020 14:45:57 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by NeekSandhu <https://github.com/NeekSandhu>. | ||
These definitions were written by [NeekSandhu](https://github.com/NeekSandhu), and [Remco Haszing](https://github.com/remcohaszing). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3793
55