Merge with upstream/master

This commit is contained in:
Nikolai Ommundsen
2018-08-06 15:11:43 +02:00
437 changed files with 3881 additions and 1364 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/goatslacker/alt
// Definitions by: Michael Shearer <https://github.com/Shearerbeard>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
///<reference types="react"/>
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/Khan/aphrodite
// Definitions by: Alexey Svetliakov <https://github.com/asvetliakov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as CSS from "csstype";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/thejameskyle/assert-equal-jsx
// Definitions by: Josh Toft <https://github.com/seryl>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/
// Definitions by: Jimmy Luong <https://github.com/dijimsta>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import {
Component,
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/
// Definitions by: Lee Standen <https://github.com/lstanden>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { Component, HTMLAttributes, FocusEvent } from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/
// Definitions by: Lee Standen <https://github.com/lstanden>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { ReactElement, Component } from 'react';
export default class InlineEdit extends Component<StatefulProps> {}
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/
// Definitions by: Lee Standen <https://github.com/lstanden>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { Component, ReactNode } from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/
// Definitions by: Lee Standen <https://github.com/lstanden>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { Component, ReactNode, SyntheticEvent } from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/margox/braft#readme
// Definitions by: My Self <https://github.com/me>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
import { RawDraftContentState } from 'draft-js';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/producthunt/chai-enzyme
// Definitions by: Alexey Svetliakov <https://github.com/asvetliakov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
/// <reference types="enzyme" />
+11
View File
@@ -349,6 +349,10 @@ declare namespace chrome {
NEW_NOTE: ActionType
}
const ActionType: {
NEW_NOTE: actionType
}
interface LaunchData {
/**
* The ID of the file or URL handler that the app is being invoked with.
@@ -9485,6 +9489,13 @@ declare namespace chrome {
/** Excludes pages that this content script would otherwise be injected into. */
exclude_matches?: any[]
/** JavaScript or CSS file to inject. */
file?: string
}
/** The type of injection item: code or a set of files. */
interface InjectionItems {
/** JavaScript code or CSS to be injected into matching pages. */
code?: string
/**
* Whether to insert the content script on about:blank and about:srcdoc.
* Content scripts will only be injected on pages when their inherit URL
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: Asana <https://github.com/Asana>
// Vincent Siao <https://github.com/vsiao>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
@@ -0,0 +1,4 @@
import generate = require('crypto-random-string');
// $ExpectType string
generate(10);
+13
View File
@@ -0,0 +1,13 @@
// Type definitions for crypto-random-string 1.0
// Project: https://github.com/sindresorhus/crypto-random-string
// Definitions by: Manuel Warum <https://github.com/MrManny>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Generate a hexadecimal string of the given length.
* @param length the length of the random string.
* @return a string of the specified length.
*/
declare function cryptoRandomString(length: number): string;
export = cryptoRandomString;
@@ -18,6 +18,6 @@
},
"files": [
"index.d.ts",
"meteor-univserse-i18n-tests.ts"
"crypto-random-string-tests.ts"
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"extends": "dtslint/dt.json"
}
@@ -1073,3 +1073,92 @@ const util_1: boolean = dt.any();
const util_2: number = dt.count();
//#endregion "Methods-Util"
//#region "ExtSettings"
const ext_classes_settings: DataTables.ExtClassesSettings = {
};
const ext_classes_settings_full: DataTables.ExtClassesSettings = {
sFilter: "",
sFilterInput: "",
sFooterTH: "",
sHeaderTH: "",
sInfo: "",
sJUIFooter: "",
sJUIHeader: "",
sLength: "",
sLengthSelect: "",
sNoFooter: "",
sPageButton: "",
sPageButtonActive: "",
sPageButtonDisabled: "",
sPaging: "",
sProcessing: "",
sRowEmpty: "",
sScrollBody: "",
sScrollFoot: "",
sScrollFootInner: "",
sScrollHead: "",
sScrollHeadInner: "",
sScrollWrapper: "",
sSortable: "",
sSortableAsc: "",
sSortableDesc: "",
sSortableNone: "",
sSortAsc: "",
sSortColumn: "",
sSortDesc: "",
sSortIcon: "",
sSortJUI: "",
sSortJUIAsc: "",
sSortJUIAscAllowed: "",
sSortJUIDesc: "",
sSortJUIDescAllowed: "",
sSortJUIWrapper: "",
sStripeEven: "",
sStripeOdd: "",
sTable: "",
sWrapper: ""
};
const ext_type_settings: DataTables.ExtTypeSettings = {
detect: [],
search: {},
order: {}
};
ext_type_settings.detect.push((d: string, s: DataTables.Settings) => {
return null;
});
ext_type_settings.detect.push((d: string, s: DataTables.Settings) => {
return "";
});
const ext_settings: DataTables.ExtSettings = {
aTypes: [],
afnFiltering: [],
afnSortData: {},
aoFeatures: [],
builder: "",
classes: ext_classes_settings,
errMode: "",
feature: [],
fnVersionCheck: (version: string) => "",
iApiIndex: 0,
internal: {},
legacy: {},
oApi: {},
oJUIClasses: {},
oPagination: {},
oSort: {},
oStdClasses: ext_classes_settings,
ofnSearch: {},
order: {},
pager: {},
renderer: {},
sVersion: "",
search: [],
selector: {},
type: ext_type_settings
};
//#endregion "ExtSettings"
+36 -1
View File
@@ -2026,7 +2026,10 @@ declare namespace DataTables {
sVersion: string;
search: any[];
selector: object;
type: object;
/**
* Type based plug-ins.
*/
type: ExtTypeSettings;
}
interface ExtClassesSettings {
@@ -2208,4 +2211,36 @@ declare namespace DataTables {
sJUIFooter?: string;
}
//#endregion "ext internal"
interface ExtTypeSettings {
/**
* Type detection functions for plug-in development.
*
* @see https://datatables.net/manual/plug-ins/type-detection
*/
detect: FunctionExtTypeSettingsDetect[];
/**
* Type based ordering functions for plug-in development.
*
* @see https://datatables.net/manual/plug-ins/sorting
* @default {}
*/
order: object;
/**
* Type based search formatting for plug-in development.
*
* @default {}
* @example
* $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {
* return d.replace(/\n/g," ").replace( /<.*?>/g, "" );
* }
*/
search: object;
}
/**
* @param data Data from the column cell to be analysed.
* @param DataTables settings object.
*/
type FunctionExtTypeSettingsDetect = (data: any, settings: Settings) => (string | null);
}
+21
View File
@@ -0,0 +1,21 @@
import * as di from "di";
const emptyInjector = new di.Injector();
const moduleSpecifications = [{}];
const fullInjector = new di.Injector(moduleSpecifications);
const childInjector = new di.Injector(moduleSpecifications, emptyInjector);
const dep: {} = fullInjector.get('foo');
const factory = (context: {}, deps: Array<{}>) => {
return {};
};
const invoked: {} = fullInjector.invoke(factory, {});
const oldTimeyClass = {prototype: {}};
const instance: {} = fullInjector.instantiate(oldTimeyClass);
const anotherChildInjector: di.Injector =
fullInjector.createChild(moduleSpecifications);
+15
View File
@@ -0,0 +1,15 @@
// Type definitions for di 0.0
// Project: https://github.com/vojtajina/node-di
// Definitions by: John J Barton <https://github.com/johnjbarton>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <reference types="node" />
export class Injector {
get(dep: string): {};
invoke(fn: (context: {}, deps: Array<{}>) => {}, context: {}): {};
instantiate({prototype: {}}): {};
createChild(modules: Array<{}>): Injector;
constructor(modules?: Array<{}>, parent?: Injector);
}
+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",
"di-tests.ts"
]
}
+1 -1
View File
@@ -1,6 +1,6 @@
import * as dnssd from 'dnssd';
const serviceType = new dnssd.ServiceType(dnssd.tcp('_mqtt'), dnssd.udp('_mqtt'));
const serviceType = dnssd.ServiceType.tcp('_mqtt', '_mqtt._udp');
const advertisement = new dnssd.Advertisement(serviceType, 1883, { name: 'broker' });
const browser: dnssd.Browser = new dnssd.Browser(serviceType);
+30 -21
View File
@@ -1,6 +1,7 @@
// Type definitions for dnssd 0.3
// Type definitions for dnssd 0.4
// Project: https://github.com/DeMille/dnssd.js#readme
// Definitions by: Angel Merino <https://github.com/angelmerino>
// Max Rumpf <https://github.com/Maxr1998>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
@@ -9,22 +10,30 @@ import { EventEmitter } from 'events';
/** Declaration file generated by dts-gen */
export class Advertisement {
constructor(type: any, port: any, ...args: any[]);
constructor(type: string | string[] | ServiceType, port: number, ...args: any[]);
start(): any;
start(): Advertisement;
stop(forceImmediate: any, callback: any): void;
stop(forceImmediate?: boolean, callback?: () => any): void;
updateTXT(txtObj: any): void;
}
export class Options {
name?: string;
host?: string;
txt?: any;
subtypes?: string[];
interface?: string;
}
/**
* A service entry as returned by serviceUp
*/
export class Service {
fullname: string; // 'InstanceName._googlecast._tcp.local.'
name: string; // 'InstanceName'
type: SType; // { name: 'googlecast'; protocol: 'tcp' }
type: ServiceType; // { name: 'googlecast'; protocol: 'tcp' }
domain: string; // 'local'
host: string; // 'Hostname.local.'
port: number; // 8009
@@ -33,9 +42,21 @@ export class Service {
txtRaw: any;
}
export class SType {
export class ServiceType {
constructor(...args: string[])
constructor(args: ServiceType);
name: string;
protocol: string;
subtypes: string[];
toString(): string;
static all(): ServiceType;
static tcp(...args: string[]): ServiceType;
static udp(...args: string[]): ServiceType;
}
export class Browser extends EventEmitter {
@@ -48,23 +69,11 @@ export class Browser extends EventEmitter {
stop(): any;
}
export class ServiceType {
constructor(...args: any[]);
toString(): any;
static all(): any;
static tcp(...args: any[]): any;
static udp(...args: any[]): any;
}
export const resolveA: any;
export const resolveAAAA: any;
export function all(): any;
export function all(): ServiceType;
export function resolve(name: any, type: any, ...args: any[]): any;
@@ -74,6 +83,6 @@ export function resolveService(name: any, ...args: any[]): any;
export function resolveTXT(name: any, opts: any): any;
export function tcp(...args: any[]): any;
export function tcp(...args: string[]): ServiceType;
export function udp(...args: any[]): any;
export function udp(...args: string[]): ServiceType;
+1 -1
View File
@@ -9,7 +9,7 @@
// Santiago Vilar <https://github.com/smvilar>
// Ulf Schwekendiek <https://github.com/sulf>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
import * as Immutable from 'immutable';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/missive/emoji-mart
// Definitions by: Diogo Franco <https://github.com/Kovensky>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
// These definitions should work with 2.3, but the tests doesn't pass on 2.3.
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: http://airbnb.io/enzyme/
// Definitions by: Nabeelah Ali <https://github.com/nali>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { EnzymeAdapter } from 'enzyme';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/airbnb/enzyme
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { EnzymeAdapter } from 'enzyme';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/airbnb/enzyme
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { EnzymeAdapter } from 'enzyme';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/Knegusen/enzyme-redux#readme
// Definitions by: Dennis Axelsson <https://github.com/knegusen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { ReactWrapper, ShallowWrapper } from 'enzyme';
import { ReactElement } from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/adriantoine/enzyme-to-json#readme
// Definitions by: Joscha Feth <https://github.com/joscha>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { ReactWrapper, ShallowWrapper } from 'enzyme';
+1 -1
View File
@@ -9,7 +9,7 @@
// Torgeir Hovden <https://github.com/thovden>
// Martin Hochel <https://github.com/hotell>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
/// <reference types="cheerio" />
import { ReactElement, Component, AllHTMLAttributes as ReactHTMLAttributes, SVGAttributes as ReactSVGAttributes } from "react";
+1 -1
View File
@@ -11,7 +11,7 @@
// Tina Roh <https://github.com/tinaroh>
// Nathan Phillip Brink <https://github.com/binki>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { EventSubscription } from 'fbemitter';
import { Component, ComponentClass, Ref, ComponentType } from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/expo/expo-sdk
// Definitions by: Konstantin Kai <https://github.com/KonstantinKai>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { EventSubscription } from 'fbemitter';
import { Component, Ref } from 'react';
+1 -1
View File
@@ -6,7 +6,7 @@
// Sergio Sánchez <https://github.com/ssanchezmarc>
// Fernando Helwanger <https://github.com/fhelwanger>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { EventSubscription } from 'fbemitter';
import { Component, ComponentClass, Ref, ComponentType } from 'react';
+1 -1
View File
@@ -7,7 +7,7 @@
// Fernando Helwanger <https://github.com/fhelwanger>
// Umidbek Karimov <https://github.com/umidbekkarimov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { EventSubscription } from 'fbemitter';
import { Component, ComponentClass, Ref, ComponentType } from 'react';
+1 -1
View File
@@ -8,7 +8,7 @@
// Umidbek Karimov <https://github.com/umidbekkarimov>
// Tina Roh <https://github.com/tinaroh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { EventSubscription } from 'fbemitter';
import { Component, ComponentClass, Ref, ComponentType } from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/expo/vector-icons
// Definitions by: Hyeonsu Lee <https://github.com/incleaf>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
import { TextProps } from 'react-native';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/schrodinger/fixed-data-table-2
// Definitions by: Ilya Petukhov <https://github.com/ilivit>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/facebook/fixed-data-table
// Definitions by: Petar Paar <https://github.com/pepaar>, Stephen Jelfs <https://github.com/stephenjelfs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
/// <reference types="react"/>
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: Steve Baker <https://github.com/stkb>
// Giedrius Grabauskas <https://github.com/GiedriusGrabauskas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import Dispatcher = require("./lib/Dispatcher");
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/yahoo/fluxible#readme
// Definitions by: xbim <https://github.com/xbim>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
/// <reference types="node" />
import * as React from 'react';
import { FluxibleContext } from 'fluxible';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/BinaryMuse/fluxxor
// Definitions by: Yuichi Murata <https://github.com/mrk21>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as EventEmitter3 from 'eventemitter3';
import * as React from "react";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/istarkov/google-map-react
// Definitions by: Honza Brecka <https://github.com/honzabrecka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
+5 -2
View File
@@ -1,4 +1,4 @@
import * as graphql from 'graphql';
import { assertInputType, isInputType, isOutputType } from 'graphql';
///////////////////////////
// graphql //
@@ -50,7 +50,10 @@ function language_visitor_tests() {
// graphql/type //
///////////////////////////
function type_definition_tests() {
// TODO
isInputType(null);
isOutputType(null);
assertInputType(null);
}
function type_directives_tests() {
+32 -32
View File
@@ -36,37 +36,37 @@ export function isType(type: any): type is GraphQLType;
export function assertType(type: any): GraphQLType;
export function isScalarType(type: GraphQLType): type is GraphQLScalarType;
export function isScalarType(type: any): type is GraphQLScalarType;
export function assertScalarType(type: GraphQLType): GraphQLScalarType;
export function assertScalarType(type: any): GraphQLScalarType;
export function isObjectType(type: GraphQLType): type is GraphQLObjectType;
export function isObjectType(type: any): type is GraphQLObjectType;
export function assertObjectType(type: GraphQLType): GraphQLObjectType;
export function assertObjectType(type: any): GraphQLObjectType;
export function isInterfaceType(type: GraphQLType): type is GraphQLInterfaceType;
export function isInterfaceType(type: any): type is GraphQLInterfaceType;
export function assertInterfaceType(type: GraphQLType): GraphQLInterfaceType;
export function assertInterfaceType(type: any): GraphQLInterfaceType;
export function isUnionType(type: GraphQLType): type is GraphQLUnionType;
export function isUnionType(type: any): type is GraphQLUnionType;
export function assertUnionType(type: GraphQLType): GraphQLUnionType;
export function assertUnionType(type: any): GraphQLUnionType;
export function isEnumType(type: GraphQLType): type is GraphQLEnumType;
export function isEnumType(type: any): type is GraphQLEnumType;
export function assertEnumType(type: GraphQLType): GraphQLEnumType;
export function assertEnumType(type: any): GraphQLEnumType;
export function isInputObjectType(type: GraphQLType): type is GraphQLInputObjectType;
export function isInputObjectType(type: any): type is GraphQLInputObjectType;
export function assertInputObjectType(type: GraphQLType): GraphQLInputObjectType;
export function assertInputObjectType(type: any): GraphQLInputObjectType;
export function isListType(type: GraphQLType): type is GraphQLList<any>;
export function isListType(type: any): type is GraphQLList<any>;
export function assertListType(type: GraphQLType): GraphQLList<any>;
export function assertListType(type: any): GraphQLList<any>;
export function isNonNullType(type: GraphQLType): type is GraphQLNonNull<any>;
export function isNonNullType(type: any): type is GraphQLNonNull<any>;
export function assertNonNullType(type: GraphQLType): GraphQLNonNull<any>;
export function assertNonNullType(type: any): GraphQLNonNull<any>;
/**
* These types may be used as input types for arguments and directives.
@@ -78,9 +78,9 @@ export type GraphQLInputType =
| GraphQLList<any>
| GraphQLNonNull<GraphQLScalarType | GraphQLEnumType | GraphQLInputObjectType | GraphQLList<any>>;
export function isInputType(type: GraphQLType): type is GraphQLInputType;
export function isInputType(type: any): type is GraphQLInputType;
export function assertInputType(type: GraphQLType): GraphQLInputType;
export function assertInputType(type: any): GraphQLInputType;
/**
* These types may be used as output types as the result of fields.
@@ -101,36 +101,36 @@ export type GraphQLOutputType =
| GraphQLList<any>
>;
export function isOutputType(type: GraphQLType): type is GraphQLOutputType;
export function isOutputType(type: any): type is GraphQLOutputType;
export function assertOutputType(type: GraphQLType): GraphQLOutputType;
export function assertOutputType(type: any): GraphQLOutputType;
/**
* These types may describe types which may be leaf values.
*/
export type GraphQLLeafType = GraphQLScalarType | GraphQLEnumType;
export function isLeafType(type: GraphQLType): type is GraphQLLeafType;
export function isLeafType(type: any): type is GraphQLLeafType;
export function assertLeafType(type: GraphQLType): GraphQLLeafType;
export function assertLeafType(type: any): GraphQLLeafType;
/**
* These types may describe the parent context of a selection set.
*/
export type GraphQLCompositeType = GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType;
export function isCompositeType(type: GraphQLType): type is GraphQLCompositeType;
export function isCompositeType(type: any): type is GraphQLCompositeType;
export function assertCompositeType(type: GraphQLType): GraphQLCompositeType;
export function assertCompositeType(type: any): GraphQLCompositeType;
/**
* These types may describe the parent context of a selection set.
*/
export type GraphQLAbstractType = GraphQLInterfaceType | GraphQLUnionType;
export function isAbstractType(type: GraphQLType): type is GraphQLAbstractType;
export function isAbstractType(type: any): type is GraphQLAbstractType;
export function assertAbstractType(type: GraphQLType): GraphQLAbstractType;
export function assertAbstractType(type: any): GraphQLAbstractType;
/**
* List Modifier
@@ -188,9 +188,9 @@ export class GraphQLNonNull<T extends GraphQLNullableType> {
export type GraphQLWrappingType = GraphQLList<any> | GraphQLNonNull<any>;
export function isWrappingType(type: GraphQLType): type is GraphQLWrappingType;
export function isWrappingType(type: any): type is GraphQLWrappingType;
export function assertWrappingType(type: GraphQLType): GraphQLWrappingType;
export function assertWrappingType(type: any): GraphQLWrappingType;
/**
* These types can all accept null as a value.
@@ -204,9 +204,9 @@ export type GraphQLNullableType =
| GraphQLInputObjectType
| GraphQLList<any>;
export function isNullableType(type: GraphQLType): type is GraphQLNullableType;
export function isNullableType(type: any): type is GraphQLNullableType;
export function assertNullableType(type: GraphQLType): GraphQLNullableType;
export function assertNullableType(type: any): GraphQLNullableType;
export function getNullableType(type: void): undefined;
export function getNullableType<T extends GraphQLNullableType>(type: T): T;
@@ -223,9 +223,9 @@ export type GraphQLNamedType =
| GraphQLEnumType
| GraphQLInputObjectType;
export function isNamedType(type: GraphQLType): type is GraphQLNamedType;
export function isNamedType(type: any): type is GraphQLNamedType;
export function assertNamedType(type: GraphQLType): GraphQLNamedType;
export function assertNamedType(type: any): GraphQLNamedType;
export function getNamedType(type: void): undefined;
export function getNamedType(type: GraphQLType): GraphQLNamedType;
+1 -1
View File
@@ -4,7 +4,7 @@
// Victor Orlov <https://github.com/vittorio>
// Louis Hache <https://github.com/lhache>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
export type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never, [x: number]: never })[keyof T]>;
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/yuanyan/halogen
// Definitions by: Vincent Rouffiat <https://github.com/steller>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as react from "react";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/JSBros/hedron
// Definitions by: Dmytro Borysov <https://github.com/dborysov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
+35
View File
@@ -0,0 +1,35 @@
import * as TOML from '@iarna/toml';
import { Readable } from 'stream';
TOML.parse('{}'); // $ExpectType Record<string, any>
TOML.parse.async('{}'); // $ExpectType Promise<Record<string, any>>
TOML.parse.async('{}', {}); // $ExpectType Promise<Record<string, any>>
TOML.parse.async('{}', {blocksize: 1}); // $ExpectType Promise<Record<string, any>>
TOML.parse.stream(); // $ExpectType Transform
TOML.parse.stream(new Readable()); // $ExpectType Promise<Record<string, any>>
TOML.stringify({}); // $ExpectType string
TOML.stringify(1); // $ExpectError
TOML.stringify.value({}); // $ExpectType string
TOML.stringify.value(1); // $ExpectType string
import parse = require('@iarna/toml/parse-string');
parse('{}'); // $ExpectType Record<string, any>
import parseAsync = require('@iarna/toml/parse-async');
parseAsync('{}'); // $ExpectType Promise<Record<string, any>>
parseAsync('{}', {}); // $ExpectType Promise<Record<string, any>>
parseAsync('{}', {blocksize: 1}); // $ExpectType Promise<Record<string, any>>
import parseStream = require('@iarna/toml/parse-stream');
parseStream(); // $ExpectType Transform
parseStream(new Readable()); // $ExpectType Promise<Record<string, any>>
import stringify = require('@iarna/toml/stringify');
stringify({}); // $ExpectType string
stringify(1); // $ExpectError
stringify.value({}); // $ExpectType string
stringify.value(1); // $ExpectType string
+19
View File
@@ -0,0 +1,19 @@
// Type definitions for @iarna/toml 2.0
// Project: https://github.com/iarna/iarna-toml#readme
// Definitions by: Klaus Meinhardt <https://github.com/ajafff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import parseAsync = require('./parse-async');
import parseStream = require('./parse-stream');
export import stringify = require('./stringify');
/** Synchronously parse a TOML string and return an object. */
export function parse(str: string): Record<string, any>;
export namespace parse {
export {
parseAsync as async,
parseStream as stream,
};
}
+10
View File
@@ -0,0 +1,10 @@
/** Asynchronously parse a TOML string and return a promise of the resulting object. */
declare function parseAsync(str: string, opts?: parseAsync.Options): Promise<Record<string, any>>;
declare namespace parseAsync {
interface Options {
/** The amount text to parser per pass through the event loop. Defaults to 40kb. */
blocksize?: number;
}
}
export = parseAsync;
+9
View File
@@ -0,0 +1,9 @@
/// <reference types="node" />
import { Readable, Transform } from "stream";
/** Given a readable stream, parse it as it feeds us data. Return a promise of the resulting object. */
declare function parseStream(readable: Readable): Promise<Record<string, any>>;
/** Returns a transform stream in object mode. When it completes, emit the resulting object. Only one object will ever be emitted. */
declare function parseStream(): Transform;
export = parseStream;
+3
View File
@@ -0,0 +1,3 @@
/** Synchronously parse a TOML string and return an object. */
declare function parseString(str: string): Record<string, any>;
export = parseString;
+15
View File
@@ -0,0 +1,15 @@
/**
* Serialize an object as TOML.
*
* If an object `TOML.stringify` is serializing has a toJSON method then it will call it to transform the object before serializing it.
* This matches the behavior of JSON.stringify.
* The one exception to this is that toJSON is not called for Date objects because JSON represents dates as strings and TOML can represent them natively.
*/
declare function stringify(obj: Record<string, any>): string;
declare namespace stringify {
/** Serialize a value as TOML would. This is a fragment and not a complete valid TOML document. */
function value(v: any): string;
}
export = stringify;
+35
View File
@@ -0,0 +1,35 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"strictFunctionTypes": true,
"paths": {
"@iarna/toml": [
"iarna__toml"
],
"@iarna/toml/*": [
"iarna__toml/*"
]
}
},
"files": [
"index.d.ts",
"parse-async.d.ts",
"parse-stream.d.ts",
"parse-string.d.ts",
"stringify.d.ts",
"iarna__toml-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for is-callable 1.1
// Project: https://github.com/ljharb/is-callable
// Definitions by: Daniel <https://github.com/nieltg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function isCallable(val: any): val is (...args: any[]) => any;
export = isCallable;
+26
View File
@@ -0,0 +1,26 @@
import isCallable = require("is-callable");
isCallable(undefined);
isCallable(null);
isCallable(false);
isCallable(true);
isCallable([]);
isCallable({});
isCallable(/a/g);
isCallable(new RegExp("a", "g"));
isCallable(new Date());
isCallable(42);
isCallable(NaN);
isCallable(Infinity);
isCallable("foo");
isCallable(Object("foo"));
function func1() {}
if (isCallable(func1)) {
func1();
}
const func2 = (x: number) => x * x;
if (isCallable(func2)) {
func2(0);
}
+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",
"is-callable-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/blainekasten/enzyme-matchers/blob/master/packages/jasmine-enzyme/README.md
// Definitions by: Umar Bolatov <https://github.com/bolatovumar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
/// <reference types="jasmine" />
/// <reference types="react" />
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/igor-dv/jest-specific-snapshot#readme
// Definitions by: Janeene Beeforth <https://github.com/dawnmist>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
/// <reference types="jest" />
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: Steve Baker <https://github.com/stkb>
// Dovydas Navickas <https://github.com/DovydasNavickas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/mixj93/jsoneditor-for-react#readme
// Definitions by: JoshGoldberg <https://github.com/joshuakgoldberg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
import JSONEditor, { JSONEditorOptions } from "jsoneditor";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/hyojin/material-ui-datatables#readme
// Definitions by: Ravi L. <https://github.com/coding2012>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
+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",
"meteor-universe-i18n-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
+1 -1
View File
@@ -2,6 +2,6 @@
// Project: https://www.muicss.com/
// Definitions by: Samuel Neff <https://github.com/samuelneff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
// all definitions in react.d.ts and subdirs
+1 -1
View File
@@ -6,4 +6,4 @@
export = nanographql;
declare function nanographql(query: TemplateStringsArray): (variables?: object) => string;
declare function nanographql(query: TemplateStringsArray | string): (variables?: object) => string;
+17 -3
View File
@@ -1,10 +1,24 @@
import gql = require('nanographql');
const queryFactory = gql`
// TemplateStringArray query test
const templateStringQueryFactory = gql`
query($name: String!) {
movie (name: $name) {
releaseDate
}
}
`;
const query = queryFactory({ name: 'Back to the Future' });
JSON.parse(query);
const templatedQuery = templateStringQueryFactory({ name: 'Back to the Future' });
JSON.parse(templatedQuery);
// string query test
const stringField = 'movie';
const strinQueryFactory = gql(`
query($name: String!) {
${stringField} (name: $name) {
releaseDate
}
}
`);
const stringQuery = strinQueryFactory({ name: 'Back to the Future' });
JSON.parse(stringQuery);
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: http://grahammendick.github.io/navigation/
// Definitions by: Graham Mendick <https://github.com/grahammendick>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { StateNavigator } from 'navigation';
import { Component, HTMLProps } from 'react';
+1 -1
View File
@@ -7,7 +7,7 @@
// Scott Jones <https://github.com/scottdj92>
// Joao Vieira <https://github.com/joaovieira>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
/// <reference types="node" />
+62 -55
View File
@@ -1151,7 +1151,6 @@ declare module "http" {
constructor();
setTimeout(msecs: number, callback?: () => void): this;
destroy(error: Error): void;
setHeader(name: string, value: number | string | string[]): void;
getHeader(name: string): number | string | string[] | undefined;
getHeaders(): OutgoingHttpHeaders;
@@ -2777,7 +2776,6 @@ declare module "net" {
bufferSize: number;
setEncoding(encoding?: string): this;
destroy(err?: any): void;
pause(): this;
resume(): this;
setTimeout(timeout: number, callback?: Function): this;
@@ -3143,7 +3141,6 @@ declare module "fs" {
export class ReadStream extends stream.Readable {
close(): void;
destroy(): void;
bytesRead: number;
path: string | Buffer;
@@ -5978,8 +5975,8 @@ declare module "stream" {
highWaterMark?: number;
encoding?: string;
objectMode?: boolean;
read?: (this: Readable, size?: number) => any;
destroy?: (error: Error | null, callback: (error?: Error) => void) => void;
read?(this: Readable, size: number): void;
destroy?(this: Readable, error: Error | null, callback: (error: Error | null) => void): void;
}
export class Readable extends Stream implements NodeJS.ReadableStream {
@@ -5997,7 +5994,7 @@ declare module "stream" {
unshift(chunk: any): void;
wrap(oldStream: NodeJS.ReadableStream): this;
push(chunk: any, encoding?: string): boolean;
_destroy(error: Error | null, callback: (error?: Error) => void): void;
_destroy(error: Error | null, callback: (error: Error | null) => void): void;
destroy(error?: Error): void;
/**
@@ -6009,66 +6006,66 @@ declare module "stream" {
* 4. readable
* 5. error
*/
addListener(event: string, listener: (...args: any[]) => void): this;
addListener(event: "close", listener: () => void): this;
addListener(event: "data", listener: (chunk: Buffer | string) => void): this;
addListener(event: "data", listener: (chunk: any) => void): this;
addListener(event: "end", listener: () => void): this;
addListener(event: "readable", listener: () => void): this;
addListener(event: "error", listener: (err: Error) => void): this;
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
emit(event: string | symbol, ...args: any[]): boolean;
emit(event: "close"): boolean;
emit(event: "data", chunk: Buffer | string): boolean;
emit(event: "data", chunk: any): boolean;
emit(event: "end"): boolean;
emit(event: "readable"): boolean;
emit(event: "error", err: Error): boolean;
emit(event: string | symbol, ...args: any[]): boolean;
on(event: string, listener: (...args: any[]) => void): this;
on(event: "close", listener: () => void): this;
on(event: "data", listener: (chunk: Buffer | string) => void): this;
on(event: "data", listener: (chunk: any) => void): this;
on(event: "end", listener: () => void): this;
on(event: "readable", listener: () => void): this;
on(event: "error", listener: (err: Error) => void): this;
on(event: string | symbol, listener: (...args: any[]) => void): this;
once(event: string, listener: (...args: any[]) => void): this;
once(event: "close", listener: () => void): this;
once(event: "data", listener: (chunk: Buffer | string) => void): this;
once(event: "data", listener: (chunk: any) => void): this;
once(event: "end", listener: () => void): this;
once(event: "readable", listener: () => void): this;
once(event: "error", listener: (err: Error) => void): this;
once(event: string | symbol, listener: (...args: any[]) => void): this;
prependListener(event: string, listener: (...args: any[]) => void): this;
prependListener(event: "close", listener: () => void): this;
prependListener(event: "data", listener: (chunk: Buffer | string) => void): this;
prependListener(event: "data", listener: (chunk: any) => void): this;
prependListener(event: "end", listener: () => void): this;
prependListener(event: "readable", listener: () => void): this;
prependListener(event: "error", listener: (err: Error) => void): this;
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
prependOnceListener(event: "close", listener: () => void): this;
prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this;
prependOnceListener(event: "data", listener: (chunk: any) => void): this;
prependOnceListener(event: "end", listener: () => void): this;
prependOnceListener(event: "readable", listener: () => void): this;
prependOnceListener(event: "error", listener: (err: Error) => void): this;
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
removeListener(event: string, listener: (...args: any[]) => void): this;
removeListener(event: "close", listener: () => void): this;
removeListener(event: "data", listener: (chunk: Buffer | string) => void): this;
removeListener(event: "data", listener: (chunk: any) => void): this;
removeListener(event: "end", listener: () => void): this;
removeListener(event: "readable", listener: () => void): this;
removeListener(event: "error", listener: (err: Error) => void): this;
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
[Symbol.asyncIterator](): AsyncIterableIterator<Buffer | string>;
[Symbol.asyncIterator](): AsyncIterableIterator<any>;
}
export interface WritableOptions {
highWaterMark?: number;
decodeStrings?: boolean;
objectMode?: boolean;
write?: (chunk: any, encoding: string, callback: Function) => any;
writev?: (chunks: Array<{ chunk: any, encoding: string }>, callback: Function) => any;
destroy?: (error: Error | null, callback: (error?: Error) => void) => void;
final?: (callback: (error?: Error) => void) => void;
write?(this: Writable, chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
writev?(this: Writable, chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
destroy?(this: Writable, error: Error | null, callback: (error: Error | null) => void): void;
final?(this: Writable, callback: (error?: Error | null) => void): void;
}
export class Writable extends Stream implements NodeJS.WritableStream {
@@ -6076,16 +6073,16 @@ declare module "stream" {
readonly writableHighWaterMark: number;
readonly writableLength: number;
constructor(opts?: WritableOptions);
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
_destroy(error: Error | null, callback: (error?: Error) => void): void;
_final(callback: Function): void;
write(chunk: any, cb?: Function): boolean;
write(chunk: any, encoding?: string, cb?: Function): boolean;
_write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
_destroy(error: Error | null, callback: (error: Error | null) => void): void;
_final(callback: (error?: Error | null) => void): void;
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
write(chunk: any, encoding?: string, cb?: (error: Error | null | undefined) => void): boolean;
setDefaultEncoding(encoding: string): this;
end(cb?: Function): void;
end(chunk: any, cb?: Function): void;
end(chunk: any, encoding?: string, cb?: Function): void;
end(cb?: () => void): void;
end(chunk: any, cb?: () => void): void;
end(chunk: any, encoding?: string, cb?: () => void): void;
cork(): void;
uncork(): void;
destroy(error?: Error): void;
@@ -6100,67 +6097,72 @@ declare module "stream" {
* 5. pipe
* 6. unpipe
*/
addListener(event: string, listener: (...args: any[]) => void): this;
addListener(event: "close", listener: () => void): this;
addListener(event: "drain", listener: () => void): this;
addListener(event: "error", listener: (err: Error) => void): this;
addListener(event: "finish", listener: () => void): this;
addListener(event: "pipe", listener: (src: Readable) => void): this;
addListener(event: "unpipe", listener: (src: Readable) => void): this;
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
emit(event: string | symbol, ...args: any[]): boolean;
emit(event: "close"): boolean;
emit(event: "drain", chunk: Buffer | string): boolean;
emit(event: "drain"): boolean;
emit(event: "error", err: Error): boolean;
emit(event: "finish"): boolean;
emit(event: "pipe", src: Readable): boolean;
emit(event: "unpipe", src: Readable): boolean;
emit(event: string | symbol, ...args: any[]): boolean;
on(event: string, listener: (...args: any[]) => void): this;
on(event: "close", listener: () => void): this;
on(event: "drain", listener: () => void): this;
on(event: "error", listener: (err: Error) => void): this;
on(event: "finish", listener: () => void): this;
on(event: "pipe", listener: (src: Readable) => void): this;
on(event: "unpipe", listener: (src: Readable) => void): this;
on(event: string | symbol, listener: (...args: any[]) => void): this;
once(event: string, listener: (...args: any[]) => void): this;
once(event: "close", listener: () => void): this;
once(event: "drain", listener: () => void): this;
once(event: "error", listener: (err: Error) => void): this;
once(event: "finish", listener: () => void): this;
once(event: "pipe", listener: (src: Readable) => void): this;
once(event: "unpipe", listener: (src: Readable) => void): this;
once(event: string | symbol, listener: (...args: any[]) => void): this;
prependListener(event: string, listener: (...args: any[]) => void): this;
prependListener(event: "close", listener: () => void): this;
prependListener(event: "drain", listener: () => void): this;
prependListener(event: "error", listener: (err: Error) => void): this;
prependListener(event: "finish", listener: () => void): this;
prependListener(event: "pipe", listener: (src: Readable) => void): this;
prependListener(event: "unpipe", listener: (src: Readable) => void): this;
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
prependOnceListener(event: "close", listener: () => void): this;
prependOnceListener(event: "drain", listener: () => void): this;
prependOnceListener(event: "error", listener: (err: Error) => void): this;
prependOnceListener(event: "finish", listener: () => void): this;
prependOnceListener(event: "pipe", listener: (src: Readable) => void): this;
prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this;
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
removeListener(event: string, listener: (...args: any[]) => void): this;
removeListener(event: "close", listener: () => void): this;
removeListener(event: "drain", listener: () => void): this;
removeListener(event: "error", listener: (err: Error) => void): this;
removeListener(event: "finish", listener: () => void): this;
removeListener(event: "pipe", listener: (src: Readable) => void): this;
removeListener(event: "unpipe", listener: (src: Readable) => void): this;
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
}
export interface DuplexOptions extends ReadableOptions, WritableOptions {
allowHalfOpen?: boolean;
readableObjectMode?: boolean;
writableObjectMode?: boolean;
read?(this: Duplex, size: number): void;
write?(this: Duplex, chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
writev?(this: Duplex, chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
final?(this: Duplex, callback: (error?: Error | null) => void): void;
destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void;
}
// Note: Duplex extends both Readable and Writable.
@@ -6169,31 +6171,36 @@ declare module "stream" {
readonly writableHighWaterMark: number;
readonly writableLength: number;
constructor(opts?: DuplexOptions);
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
_destroy(error: Error | null, callback: (error?: Error) => void): void;
_final(callback: Function): void;
write(chunk: any, cb?: Function): boolean;
write(chunk: any, encoding?: string, cb?: Function): boolean;
_write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
_destroy(error: Error | null, callback: (error: Error | null) => void): void;
_final(callback: (error?: Error | null) => void): void;
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
write(chunk: any, encoding?: string, cb?: (error: Error | null | undefined) => void): boolean;
setDefaultEncoding(encoding: string): this;
end(cb?: Function): void;
end(chunk: any, cb?: Function): void;
end(chunk: any, encoding?: string, cb?: Function): void;
end(cb?: () => void): void;
end(chunk: any, cb?: () => void): void;
end(chunk: any, encoding?: string, cb?: () => void): void;
cork(): void;
uncork(): void;
}
type TransformCallback = (err?: Error, data?: any) => void;
type TransformCallback = (error?: Error, data?: any) => void;
export interface TransformOptions extends DuplexOptions {
transform?: (chunk: any, encoding: string, callback: TransformCallback) => any;
flush?: (callback: TransformCallback) => any;
read?(this: Transform, size: number): void;
write?(this: Transform, chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
writev?(this: Transform, chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
final?(this: Transform, callback: (error?: Error | null) => void): void;
destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void;
transform?(this: Transform, chunk: any, encoding: string, callback: TransformCallback): void;
flush?(this: Transform, callback: TransformCallback): void;
}
export class Transform extends Duplex {
constructor(opts?: TransformOptions);
_transform(chunk: any, encoding: string, callback: TransformCallback): void;
destroy(error?: Error): void;
_flush(callback: TransformCallback): void;
}
export class PassThrough extends Transform { }
+106 -38
View File
@@ -953,81 +953,149 @@ const unzipped: Buffer = zlib.unzipSync(compressMe);
function simplified_stream_ctor_test() {
new stream.Readable({
read(size) {
size.toFixed();
// $ExpectType Readable
this;
// $ExpectType number
size;
},
destroy(error, cb) {
error.stack;
cb(error);
// $ExpectType Error
error;
// $ExpectType (error: Error) => void
cb;
}
});
new stream.Writable({
write(chunk, enc, cb) {
chunk.slice(1);
enc.charAt(0);
cb();
// $ExpectType Writable
this;
// $ExpectType any
chunk;
// $ExpectType string
enc;
// $ExpectType (error?: Error) => void
cb;
},
writev(chunks, cb) {
chunks[0].chunk.slice(0);
chunks[0].encoding.charAt(0);
cb();
// $ExpectType Writable
this;
// $ExpectType { chunk: any; encoding: string; }[]
chunks;
// $ExpectType (error?: Error) => void
cb;
},
destroy(error, cb) {
error.stack;
cb(error);
// $ExpectType Writable
this;
// $ExpectType Error
error;
// $ExpectType (error: Error) => void
cb;
},
final(cb) {
cb(null);
// $ExpectType Writable
this;
// $ExpectType (error?: Error) => void
cb;
}
});
new stream.Duplex({
read(size) {
size.toFixed();
// $ExpectType Duplex
this;
// $ExpectType number
size;
},
write(chunk, enc, cb) {
chunk.slice(1);
enc.charAt(0);
cb();
// $ExpectType Duplex
this;
// $ExpectType any
chunk;
// $ExpectType string
enc;
// $ExpectType (error?: Error) => void
cb;
},
writev(chunks, cb) {
chunks[0].chunk.slice(0);
chunks[0].encoding.charAt(0);
cb();
// $ExpectType Duplex
this;
// $ExpectType { chunk: any; encoding: string; }[]
chunks;
// $ExpectType (error?: Error) => void
cb;
},
destroy(error, cb) {
error.stack;
cb(error);
// $ExpectType Duplex
this;
// $ExpectType Error
error;
// $ExpectType (error: Error) => void
cb;
},
final(cb) {
// $ExpectType Duplex
this;
// $ExpectType (error?: Error) => void
cb;
},
readableObjectMode: true,
writableObjectMode: true
});
new stream.Transform({
transform(chunk, enc, cb) {
chunk.slice(1);
enc.charAt(0);
cb();
},
flush(cb) {
cb();
},
read(size) {
size.toFixed();
// $ExpectType Transform
this;
// $ExpectType number
size;
},
write(chunk, enc, cb) {
chunk.slice(1);
enc.charAt(0);
cb();
// $ExpectType Transform
this;
// $ExpectType any
chunk;
// $ExpectType string
enc;
// $ExpectType (error?: Error) => void
cb;
},
writev(chunks, cb) {
chunks[0].chunk.slice(0);
chunks[0].encoding.charAt(0);
cb();
// $ExpectType Transform
this;
// $ExpectType { chunk: any; encoding: string; }[]
chunks;
// $ExpectType (error?: Error) => void
cb;
},
destroy(error, cb) {
error.stack;
cb(error);
// $ExpectType Transform
this;
// $ExpectType Error
error;
// $ExpectType (error: Error) => void
cb;
},
final(cb) {
// $ExpectType Transform
this;
// $ExpectType (error?: Error) => void
cb;
},
transform(chunk, enc, cb) {
// $ExpectType Transform
this;
// $ExpectType any
chunk;
// $ExpectType string
enc;
// $ExpectType TransformCallback
cb;
},
flush(cb) {
// $ExpectType TransformCallback
cb;
},
allowHalfOpen: true,
readableObjectMode: true,
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/FormidableLabs/nuka-carousel
// Definitions by: Roman Charugin <https://github.com/Romic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
+16 -16
View File
@@ -280,7 +280,7 @@ declare namespace Office {
*
* @remarks
*
* Returned by the {@link Office.AsyncResult.status | status} property of the {@link Office.AsyncResult | AsyncResult} object.
* Returned by the `status` property of the {@link Office.AsyncResult | AsyncResult} object.
*
* **Support details**
*
@@ -477,9 +477,9 @@ declare namespace Office {
* @remarks
* <table><tr><td>Hosts</td><td>Access, Excel, Outlook, PowerPoint, Project, Word</td></tr></table>
*
* You access the AsyncResult object in the function passed as the argument to the callback parameter of an "Async" method, such as the {@link Office.Document.getSelectedDataAsync | getSelectedDataAsync} and {@link Office.Document.setSelectedDataAsync | setSelectedDataAsync} methods of the Document object.
* You access the AsyncResult object in the function passed as the argument to the callback parameter of an "Async" method, such as the `getSelectedDataAsync` and `setSelectedDataAsync` methods of the {@link Office.Document | Document} object.
*
* Note: What the value property returns for a particular "Async" method varies depending on the purpose and context of that method. To determine what is returned by the value property for an "Async" method, refer to the "Callback value" section of the method's topic. For a complete listing of the "Async" methods, see the Remarks section of the {@link Office.AsyncResult | AsyncResult} object topic.
* Note: What the value property returns for a particular "Async" method varies depending on the purpose and context of that method. To determine what is returned by the value property for an "Async" method, refer to the "Callback value" section of the method's topic.
*/
value: any;
}
@@ -1334,7 +1334,7 @@ declare namespace Office {
/**
* Return a JSON object that contains an array of the ids, titles, and indexes of the selected slides. For example, `{"slides":[{"id":257,"title":"Slide 2","index":2},{"id":256,"title":"Slide 1","index":1}]}` for a selection of two slides.
*
* Note: Only applies to data in PowerPoint when calling the {@link Office.Document.getSelectedData | Document.getSelectedData} method to get the current slide or selected range of slides.
* Note: Only applies to data in PowerPoint when calling the {@link Office.Document | Document}.getSelectedData method to get the current slide or selected range of slides.
*/
SlideRange,
/**
@@ -1630,7 +1630,7 @@ declare namespace Office {
Index
}
/**
* Specifies the relative PowerPoint slide
* Specifies the relative PowerPoint slide.
*
* @remarks
*
@@ -1642,7 +1642,7 @@ declare namespace Office {
*
* *Supported hosts, by platform*
* <table>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad /th></tr>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad </th></tr>
* <tr><th> PowerPoint </th><td> Y </td><td> Y </td><td> Y </td></tr>
* </table>
*/
@@ -1665,7 +1665,7 @@ declare namespace Office {
Previous
}
/**
* Specifies whether to select (highlight) the location to navigate to (when using the {@link Office.Document.goToByIdAsync | Document.goToByIdAsync} method).
* Specifies whether to select (highlight) the location to navigate to (when using the {@link Office.Document | Document}.goToByIdAsync method).
*
* @remarks
*
@@ -1677,7 +1677,7 @@ declare namespace Office {
*
* *Supported hosts, by platform*
* <table>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad /th></tr>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad </th></tr>
* <tr><th> Excel </th><td> Y </td><td> Y </td><td> Y </td></tr>
* <tr><th> PowerPoint </th><td> Y </td><td> </td><td> </td></tr>
* <tr><th> Word </th><td> Y </td><td> </td><td> Y </td></tr>
@@ -3716,11 +3716,11 @@ declare namespace Office {
*/
interface TextBinding extends Binding { }
/**
* Specifies the project fields that are available as a parameter for the {@link Office.Document.getProjectFieldAsync | getProjectFieldAsync} method.
* Specifies the project fields that are available as a parameter for the {@link Office.Document | Document}.getProjectFieldAsync method.
*
* @remarks
*
* A ProjectProjectFields constant can be used as a parameter of the {@link Office.Document.getProjectFieldAsync | getProjectFieldAsync} method.
* A ProjectProjectFields constant can be used as a parameter of the {@link Office.Document | Document}.getProjectFieldAsync method.
*
* **Support details**
*
@@ -3786,10 +3786,10 @@ declare namespace Office {
WSSList
}
/**
* Specifies the resource fields that are available as a parameter for the {@link Office.Document.getResourceFieldAsync | getResourceFieldAsync} method.
* Specifies the resource fields that are available as a parameter for the {@link Office.Document | Document}.getResourceFieldAsync method.
*
* @remarks
* A ProjectResourceFields constant can be used as a parameter of the {@link Office.Document.getResourceFieldAsync | getResourceFieldAsync} method.
* A ProjectResourceFields constant can be used as a parameter of the {@link Office.Document | Document}.getResourceFieldAsync method.
*
* For more information about working with fields in Project, see {@link https://support.office.com/article/Available-fields-reference-615a4563-1cc3-40f4-b66f-1b17e793a460 | Available fields} reference. In Project Help, search for Available fields.
*
@@ -4608,10 +4608,10 @@ declare namespace Office {
Text9
}
/**
* Specifies the task fields that are available as a parameter for the {@link Office.Document.getTaskFieldAsync | getTaskFieldAsync} method.
* Specifies the task fields that are available as a parameter for the {@link Office.Document | Document}.getTaskFieldAsync method.
*
* @remarks
* A ProjectTaskFields constant can be used as a parameter of the {@link Office.Document.getTaskFieldAsync | getTaskFieldAsync} method.
* A ProjectTaskFields constant can be used as a parameter of the {@link Office.Document | Document}.getTaskFieldAsync method.
*
* For more information about working with fields in Project, see the {@link https://support.office.com/article/Available-fields-reference-615a4563-1cc3-40f4-b66f-1b17e793a460 | Available fields} reference. In Project Help, search for Available fields.
*
@@ -5756,10 +5756,10 @@ declare namespace Office {
WSSID
}
/**
* Specifies the types of views that the {@link Office.Document.getSelectedViewAsync | getSelectedViewAsync} method can recognize.
* Specifies the types of views that the {@link Office.Document | Document}.getSelectedViewAsync method can recognize.
*
* @remarks
* The {@link Office.Document.getSelectedViewAsync | getSelectedViewAsync} method returns the ProjectViewTypes constant value and name that corresponds to the active view.
* The {@link Office.Document | Document}.getSelectedViewAsync method returns the ProjectViewTypes constant value and name that corresponds to the active view.
*
* **Support details**
*
+2
View File
@@ -1,6 +1,7 @@
// Type definitions for passport-saml 0.15
// Project: https://github.com/bergie/passport-saml
// Definitions by: Chris Barth <https://github.com/cjbarth>
// Damian Assennato <https://github.com/dassennato>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -62,6 +63,7 @@ export interface SamlConfig {
cacheProvider?: CacheProvider;
// Passport
name?: string;
passReqToCallback?: boolean;
// Logout
+2 -1
View File
@@ -5,6 +5,7 @@ import fs = require('fs');
const samlStrategy = new SamlStrategy.Strategy(
{
name: 'samlCustomName',
path: '/login/callback',
entryPoint: 'https://openidp.feide.no/simplesaml/saml2/idp/SSOService.php',
issuer: 'passport-saml',
@@ -29,6 +30,6 @@ const samlStrategy = new SamlStrategy.Strategy(
);
passport.use(samlStrategy);
passport.authenticate('saml', {failureRedirect: '/', failureFlash: true});
passport.authenticate('samlCustomName', {failureRedirect: '/', failureFlash: true});
const metadata = samlStrategy.generateServiceProviderMetadata("decryptionCert");
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/kusti8/proton-native
// Definitions by: Nguyen Xuan Khanh <https://github.com/khanhas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/ptomasroos/react-native-multi-slider#readme
// Definitions by: Edward Sammut Alessi <https://github.com/Slessi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
import { ViewStyle } from "react-native";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/zpao/qrcode.react
// Definitions by: Mleko <https://github.com/mleko>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
/// <reference types="react" />
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/formidablelabs/radium
// Definitions by: Alex Gorbatchev <https://github.com/alexgorbatchev>, Philipp Holzer <https://github.com/nupplaphil>, Alexey Svetliakov <https://github.com/asvetliakov>, Mikael Hermansson <https://github.com/mihe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/react-component/select
// Definitions by: Denis Tirilis <https://github.com/DenisTirilis>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
/// <reference types="react" />
+1 -1
View File
@@ -5,7 +5,7 @@
// Austin Turner <https://github.com/paustint>
// Jacob Froman <https://github.com/j-fro>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
import { RCTooltip } from 'rc-tooltip';
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: rhysd <https://rhysd.github.io>
// ahstro <http://ahst.ro>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/react-component/tree
// Definitions by: John Reilly <https://github.com/johnnyreilly>, Methuselah96 <https://github.com/Methuselah96>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
// TypeScript Version: 2.8
import { Component } from "react";
+1169
View File
File diff suppressed because it is too large Load Diff
+17
View File
@@ -0,0 +1,17 @@
import * as $rdf from "rdflib";
const store = $rdf.graph();
$rdf.parse(
"some inline rdf data",
store,
"http://example.com",
"text/n3",
(x, y) => {}
);
const node = store.any(
$rdf.sym("http://example.com/subject"),
$rdf.sym("http://example.com/property"),
undefined,
undefined
);
const value = node.value;
+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",
"rdflib-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/americanexpress/react-albus#readme
// Definitions by: Sindre Seppola <https://github.com/sseppola>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
import { History } from "history";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/schiehll/react-alert
// Definitions by: Steve Syrell <https://github.com/ssyrell>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/maxmarinich/react-alice-carousel
// Definitions by: endigo <https://github.com/endigo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/dbramwell/react-animate-on-scroll
// Definitions by: Ricardo Albuquerque <https://github.com/ralbuque>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/kriasoft/react-app#readme
// Definitions by: Prakarsh Pandey <https://github.com/prakarshpandey>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from 'react';
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: Muhammad Fawwaz Orabi <https://github.com/forabi>
// Chris Rohlfs <https://github.com/crohlfs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import * as React from "react";
+1 -1
View File
@@ -2,7 +2,7 @@
// Project: https://github.com/reactjs/react-autocomplete
// Definitions by: Lee Standen <https://github.com/lstanden>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
// TypeScript Version: 2.8
import { Component, ChangeEvent, ReactNode, CSSProperties, HTMLProps } from 'react';

Some files were not shown because too many files have changed in this diff Show More