mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #23853 from lucasriondel/master
added base64topdf definition file
This commit is contained in:
@@ -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
|
||||
Vendored
+13
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user