mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
add type-name.d.ts
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
/// <reference path="./type-name.d.ts" />
|
||||
|
||||
import typeName = require("type-name");
|
||||
console.log(typeName('foo') === 'string');
|
||||
console.log(typeName([1, 2]) === 'Array');
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// Type definitions for type-name v1.0.1
|
||||
// Project: https://github.com/twada/type-name/
|
||||
// Definitions by: OKUNOKENTARO <https://github.com/armorik83>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare function typeName(anyVar: any): string;
|
||||
declare module typeName {}
|
||||
|
||||
declare module "type-name" {
|
||||
export = typeName;
|
||||
}
|
||||
Reference in New Issue
Block a user