Merge pull request #23853 from lucasriondel/master

added base64topdf definition file
This commit is contained in:
Bowden Kelly
2018-02-23 13:41:12 -08:00
committed by GitHub
4 changed files with 45 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import * as base64topdf from 'base64topdf';
base64topdf.base64Encode('index.ts'); // $ExpectType void
base64topdf.base64Decode('decodethis', 'test.b64'); // $ExpectType void
base64topdf.rtfToText('rtf'); // $ExpectType string
base64topdf.textToRtf('text'); // $ExpectType string
base64topdf.strToBase64('str'); // $ExpectType string
base64topdf.base64ToStr('base64'); // $ExpectType string
+13
View File
@@ -0,0 +1,13 @@
// Type definitions for base64topdf 1.1
// Project: https://github.com/rpsankar001
// Definitions by: Lucas Riondel <https://github.com/lucasriondel>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace base64topdf;
export function base64Encode(file: string): void;
export function base64Decode(base64str: string, file: string): void;
export function rtfToText(rtfStr: string): string;
export function textToRtf(textStr: string): string;
export function strToBase64(str: string): string;
export function base64ToStr(base64Str: string): string;
+23
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",
"base64topdf-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }