mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Cleanup 20190425 (#34995)
* Update project urls * remove jquery-notifier, update react-test-renderer 1. jquery-notifier was types for a type-only package. 2. react-test-renderer's test incorrectly assumed that <t> was an html tag. This is now an error. I updated the test to use <div>, since that's a tag I've heard of before. * Fix space lint * Use typescript for removing non-npm package * Reorder names in notNeededpackages.json * Point to real version of typescript
This commit is contained in:
@@ -1416,6 +1416,12 @@
|
||||
"sourceRepoURL": "https://github.com/jpush/jpush-react-native",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "typescript",
|
||||
"typingsPackageName": "jquery-notifier",
|
||||
"sourceRepoURL": "https://github.com/Microsoft/TypeScript",
|
||||
"asOfVersion": "1.3.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "jquery.ajaxfile",
|
||||
"typingsPackageName": "jquery.ajaxfile",
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Type definitions for istanbul-lib-coverage 2.0
|
||||
// Project: https://github.com/istanbuljs/istanbuljs
|
||||
// Project: https://istanbul.js.org, https://github.com/istanbuljs/istanbuljs
|
||||
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
|
||||
// Lorenzo Rapetti <https://github.com/loryman>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Type definitions for istanbul-lib-hook 1.0
|
||||
// Project: https://github.com/istanbuljs/istanbuljs
|
||||
// Project: https://istanbul.js.org, https://github.com/istanbuljs/istanbuljs
|
||||
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Type definitions for istanbul-lib-instrument 1.7
|
||||
// Project: https://github.com/istanbuljs/istanbuljs
|
||||
// Project: https://istanbul.js.org, https://github.com/istanbuljs/istanbuljs
|
||||
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Type definitions for istanbul-lib-report 1.1
|
||||
// Project: https://github.com/istanbuljs/istanbuljs
|
||||
// Project: https://istanbul.js.org, https://github.com/istanbuljs/istanbuljs
|
||||
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Type definitions for istanbul-lib-source-maps 1.2
|
||||
// Project: https://github.com/istanbuljs/istanbuljs
|
||||
// Project: https://istanbul.js.org, https://github.com/istanbuljs/istanbuljs
|
||||
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
Vendored
-18
@@ -1,18 +0,0 @@
|
||||
// Type definitions for non-npm package notifier 1.0
|
||||
// Project: https://github.com/allipierre/jquery-notifier
|
||||
// Definitions by: Alli Pierre Yotti <https://github.com/allipierre>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace notifier {
|
||||
/**
|
||||
* notifier.show(title, msg, type, icon, timeout);
|
||||
* {title} title
|
||||
* {msg} msg
|
||||
* {type} type
|
||||
* {icon} icon
|
||||
* {timeout} timeout
|
||||
*/
|
||||
function show(title: string, msg: string, type: string, icon: string, timeout?: number): string | number;
|
||||
|
||||
function hide(notificationId: string | number): boolean;
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
notifier.show('Hello!', 'I am a default notification.', '', '', 0);
|
||||
notifier.show('Reminder!', 'You have a meeting at 10:30 AM.', '', '', 0);
|
||||
notifier.show('Well Done!', 'You just submit your resume successfuly.', '', '', 0);
|
||||
notifier.show('Warning!', 'The data presented here can be change.', '', '', 0);
|
||||
notifier.show('Sorry!', 'Could not complete your transaction.', '', '', 0);
|
||||
|
||||
notifier.show('Default!', 'I am a default notification.', '', 'img/clock-48.png', 0);
|
||||
notifier.show('Reminder!', 'You have a meeting at 10:30 AM.', '', 'img/survey-48.png', 0);
|
||||
notifier.show('Well Done!', 'You just submit your resume successfuly.', '', 'img/ok-48.png', 0);
|
||||
notifier.show('Warning!', 'The data presented here can be change.', '', 'img/medium_priority-48.png', 0);
|
||||
notifier.show('Sorry!', 'Could not complete your transaction.', '', 'img/high_priority-48.png', 0);
|
||||
|
||||
notifier.show('Default!', 'I am a default notification.', '', 'img/clock-48.png', 4000);
|
||||
notifier.show('Reminder!', 'You have a meeting at 10:30 AM.', '', 'img/survey-48.png', 4000);
|
||||
notifier.show('Well Done!', 'You just submit your resume successfuly.', '', 'img/ok-48.png', 4000);
|
||||
notifier.show('Warning!', 'The data presented here can be change.', '', 'img/medium_priority-48.png', 4000);
|
||||
notifier.show('Sorry!', 'Could not complete your transaction.', '', 'img/high_priority-48.png', 4000);
|
||||
|
||||
let notificationId: string | number;
|
||||
|
||||
let showNotification = () => {
|
||||
notificationId = notifier.show('Reminder!', 'You have a meeting at 10:30 AM.', '', 'img/survey-48.png', 4000);
|
||||
};
|
||||
|
||||
let hideNotification = () => {
|
||||
notifier.hide(notificationId);
|
||||
};
|
||||
|
||||
document.querySelector('#btn-nt-show').addEventListener('click', showNotification);
|
||||
|
||||
document.querySelector('#btn-nt-hide').addEventListener('click', hideNotification);
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"jquery-notifier-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Type definitions for natsort 1.0
|
||||
// Project: https://github.com/bubkoo/natsort
|
||||
// Project: https://github.com/netop/natsort
|
||||
// Definitions by: Melvin Groenhoff <https://github.com/mgroenhoff>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Type definitions for react-instantsearch-core 5.2
|
||||
// Project: https://community.algolia.com/react-instantsearch/
|
||||
// Project: https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/react, https://community.algolia.com/react-instantsearch/
|
||||
// Definitions by: Gordon Burgett <https://github.com/gburgett>
|
||||
// Justin Powell <https://github.com/jpowell>
|
||||
// David Furlong <https://github.com/davidfurlong>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Type definitions for react-instantsearch 5.2
|
||||
// Project: https://community.algolia.com/react-instantsearch/
|
||||
// Project: https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/react, https://community.algolia.com/react-instantsearch/
|
||||
// Definitions by: Gordon Burgett <https://github.com/gburgett>
|
||||
// Justin Powell <https://github.com/jpowell>
|
||||
// Haroen Viaene <https://github.com/haroenv>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Type definitions for react-instantsearch-native 5.3
|
||||
// Project: https://community.algolia.com/react-instantsearch
|
||||
// Project: https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/react, https://community.algolia.com/react-instantsearch
|
||||
// Definitions by: Gordon Burgett <https://github.com/gburgett>
|
||||
// Justin Powell <https://github.com/jpowell>
|
||||
// Haroen Viaene <https://github.com/haroenv>
|
||||
|
||||
@@ -48,7 +48,7 @@ function testInstance(inst: ReactTestInstance) {
|
||||
testInstance(inst.findByProps({ prop1: "p" }));
|
||||
testInstance(inst.findByType("a"));
|
||||
testInstance(inst.findByType(TestComponent));
|
||||
inst.findAll(n => n.type === "t", { deep: true }).map(testInstance);
|
||||
inst.findAll(n => n.type === "div", { deep: true }).map(testInstance);
|
||||
inst.findAllByProps({ prop1: "p" }, { deep: true }).map(testInstance);
|
||||
inst.findAllByType("a", { deep: true }).map(testInstance);
|
||||
inst.findAllByType(TestComponent, { deep: true }).map(testInstance);
|
||||
|
||||
Reference in New Issue
Block a user