mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Update textversionjs Add test Add tsconfig Add tslint Update textversionjs Fixed linting errors
14 lines
215 B
TypeScript
14 lines
215 B
TypeScript
import textVersion = require('textversionjs');
|
|
|
|
// $ExpectType string
|
|
textVersion("<h1>Hello World</h1><p>Hello World</p>");
|
|
/*
|
|
=>
|
|
Hello World
|
|
===========
|
|
Hello World
|
|
*/
|
|
|
|
// $ExpectError
|
|
textVersion(1);
|