From 713219e64b3fb52b52f35db6f7b558b7e2913f2f Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Thu, 9 Aug 2018 23:08:23 +0200 Subject: [PATCH] typed.js: remove package as typings are not included upstream --- notNeededPackages.json | 6 + types/typed.js/index.d.ts | 185 ------------------------------- types/typed.js/tsconfig.json | 24 ---- types/typed.js/tslint.json | 3 - types/typed.js/typed.js-tests.ts | 29 ----- 5 files changed, 6 insertions(+), 241 deletions(-) delete mode 100644 types/typed.js/index.d.ts delete mode 100644 types/typed.js/tsconfig.json delete mode 100644 types/typed.js/tslint.json delete mode 100644 types/typed.js/typed.js-tests.ts diff --git a/notNeededPackages.json b/notNeededPackages.json index 8b56dbd9b5..056aa81e5b 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1530,6 +1530,12 @@ "sourceRepoURL": "https://github.com/samchon/tstl", "asOfVersion": "1.5.7" }, + { + "libraryName": "typed.js", + "typingsPackageName": "typed.js", + "sourceRepoURL": "https://github.com/mattboldt/typed.js", + "asOfVersion": "2.0.9" + }, { "libraryName": "TypeScript", "typingsPackageName": "typescript", diff --git a/types/typed.js/index.d.ts b/types/typed.js/index.d.ts deleted file mode 100644 index 45064e9c03..0000000000 --- a/types/typed.js/index.d.ts +++ /dev/null @@ -1,185 +0,0 @@ -// Type definitions for typed.js 2.0 -// Project: https://github.com/mattboldt/typed.js -// Definitions by: Davide Donadello -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export default Typed; - -export class Typed { - constructor(elementId: string, options: TypedJsOptions); - - /** - * Toggle start() and stop() of the Typed instance - */ - toggle(): void; - - /** - * Stop typing / backspacing and enable cursor blinking - */ - stop(): void; - - /** - * Start typing / backspacing after being stopped - */ - start(): void; - - /** - * Destroy this instance of Typed - */ - destroy(): void; - - /** - * Reset Typed and optionally restarts - */ - reset(restart: boolean): void; -} - -export type TypedJsContentType = "html" | "null"; - -export interface TypedJsOptions { - /** - * Strings to be typed - */ - strings?: string[]; - - /** - * ID of element containing string children - */ - stringsElement?: string; - - /** - * Type speed in milliseconds - */ - typeSpeed?: number; - - /** - * Time before typing starts in milliseconds - */ - startDelay?: number; - - /** - * Backspacing speed in milliseconds - */ - backSpeed?: number; - - /** - * Only backspace what doesn't match the previous string - */ - smartBackspace?: boolean; - - /** - * Shuffle the strings - */ - shuffle?: boolean; - - /** - * Time before backspacing in milliseconds - */ - backDelay?: number; - - /** - * Fade out instead of backspace - */ - fadeOut?: boolean; - - /** - * Css class for fade animation - */ - fadeOutClass?: string; - - /** - * Fade out delay in milliseconds - */ - fadeOutDelay?: number; - - /** - * Loop strings - */ - loop?: boolean; - - /** - * Amount of loops - */ - loopCount?: number; - - /** - * Show cursor - */ - showCursor?: boolean; - - /** - * Character for cursor - */ - cursorChar?: string; - - /** - * Insert CSS for cursor and fadeOut into HTML - */ - autoInsertCss?: boolean; - - /** - * Attribute for typing - * Ex: input placeholder, value, or just HTML text - */ - attr?: string; - - /** - * Bind to focus and blur if el is text input - */ - bindInputFocusEvents?: boolean; - - /** - * 'html' or 'null' for plaintext - */ - contentType?: TypedJsContentType; - - /** - * All typing is complete - */ - onComplete?: (self: Typed) => void; - - /** - * Before each string is typed - */ - preStringTyped?: (arrayPos: number, self: Typed) => void; - - /** - * After each string is typed - */ - onStringTyped?: (arrayPos: number, self: Typed) => void; - - /** - * During looping, after last string is typed - */ - onLastStringBackspaced?: (self: Typed) => void; - - /** - * Typing has been stopped - */ - onTypingPaused?: (arrayPos: number, self: Typed) => void; - - /** - * Typing has been started after being stopped - */ - onTypingResumed?: (arrayPos: number, self: Typed) => void; - - /** - * After reset - */ - onReset?: (self: Typed) => void; - - /** - * After stop - */ - onStop?: (arrayPos: number, self: Typed) => void; - - /** - * After start - */ - onStart?: (arrayPos: number, self: Typed) => void; - - /** - * After destroy - */ - onDestroy?: (self: Typed) => void; -} diff --git a/types/typed.js/tsconfig.json b/types/typed.js/tsconfig.json deleted file mode 100644 index b018ca64fe..0000000000 --- a/types/typed.js/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true - }, - "files": [ - "index.d.ts", - "typed.js-tests.ts" - ] -} diff --git a/types/typed.js/tslint.json b/types/typed.js/tslint.json deleted file mode 100644 index e60c15844f..0000000000 --- a/types/typed.js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "dtslint/dt.json" -} \ No newline at end of file diff --git a/types/typed.js/typed.js-tests.ts b/types/typed.js/typed.js-tests.ts deleted file mode 100644 index 3e4bd0a137..0000000000 --- a/types/typed.js/typed.js-tests.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Typed, TypedJsOptions } from 'typed.js'; - -// Create instance -const typed = new Typed(".element", { - strings: ["First sentence.", "& a second sentence."], - typeSpeed: 100, - startDelay: 0, - backSpeed: 50, - smartBackspace: true, - shuffle: true, - backDelay: 150, - loop: true, - showCursor: true, - autoInsertCss: true, - contentType: "html", - onComplete: (self: Typed) => { - // Complete!! - }, - onDestroy: (self: Typed) => { - // End!! - }, -}); - -// Methods -typed.reset(false); -typed.destroy(); -typed.start(); -typed.stop(); -typed.toggle();