mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 11:07:32 +08:00
Merge remote-tracking branch 'upstream/master' into AlexJ-LinkFixes
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
"libraryName": "axe-core",
|
||||
"typingsPackageName": "axe-core",
|
||||
"sourceRepoURL": "https://github.com/dequelabs/axe-core",
|
||||
"asOfVersion": "2.0.7"
|
||||
"asOfVersion": "3.0.3"
|
||||
},
|
||||
{
|
||||
"libraryName": "axios",
|
||||
|
||||
31
types/axe-webdriverjs/axe-webdriverjs-tests.ts
Normal file
31
types/axe-webdriverjs/axe-webdriverjs-tests.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import { Result, RunOptions, Spec } from "axe-core";
|
||||
import { AxeBuilder, AxeAnalysis } from "axe-webdriverjs";
|
||||
import { WebDriver } from "selenium-webdriver";
|
||||
|
||||
const inTest = async (webDriver: WebDriver) => {
|
||||
const builderCalled: AxeBuilder = AxeBuilder(webDriver);
|
||||
const builderNewed: AxeBuilder = new AxeBuilder(webDriver);
|
||||
|
||||
const runOptions: RunOptions = {};
|
||||
const spec: Spec = {};
|
||||
|
||||
const analysis: AxeAnalysis = await AxeBuilder(webDriver)
|
||||
.include("include")
|
||||
.exclude("exclude")
|
||||
.options(runOptions)
|
||||
.withRules("rule")
|
||||
.withRules(["rule", "rule"])
|
||||
.withTags("tag")
|
||||
.withTags(["tag", "tag"])
|
||||
.disableRules("rule")
|
||||
.disableRules(["rule", "rule"])
|
||||
.configure(spec)
|
||||
.analyze((internalResults: AxeAnalysis) => {});
|
||||
|
||||
const inapplicable: Result[] = analysis.inapplicable;
|
||||
const incomplete: Result[] = analysis.incomplete;
|
||||
const passes: Result[] = analysis.passes;
|
||||
const timestamp: string = analysis.timestamp;
|
||||
const url: string = analysis.url;
|
||||
const violations: Result[] = analysis.violations;
|
||||
};
|
||||
83
types/axe-webdriverjs/index.d.ts
vendored
Normal file
83
types/axe-webdriverjs/index.d.ts
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
// Type definitions for axe-webdriverjs 2.0
|
||||
// Project: https://github.com/dequelabs/axe-webdriverjs#readme
|
||||
// Definitions by: My Self <https://github.com/JoshuaKGoldberg>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { Result, RunOptions, Spec } from "axe-core";
|
||||
import { WebDriver } from "selenium-webdriver";
|
||||
|
||||
export interface AxeAnalysis {
|
||||
inapplicable: Result[];
|
||||
incomplete: Result[];
|
||||
passes: Result[];
|
||||
timestamp: string;
|
||||
url: string;
|
||||
violations: Result[];
|
||||
}
|
||||
|
||||
export interface AxeBuilder {
|
||||
/**
|
||||
* Includes a selector in analysis.
|
||||
*
|
||||
* @param selector CSS selector of the element to include.
|
||||
*/
|
||||
include(selector: string): this;
|
||||
|
||||
/**
|
||||
* Excludes a selector from analysis.
|
||||
*
|
||||
* @param selector CSS selector of the element to exclude.
|
||||
*/
|
||||
exclude(selector: string): this;
|
||||
|
||||
/**
|
||||
* Options to directly pass to `axe.run`.
|
||||
*
|
||||
* @param options aXe options object.
|
||||
* @remarks Will override any other configured options, including calls to `withRules` and `withTags`.
|
||||
* @see https://github.com/dequelabs/axe-core/issues/937
|
||||
*/
|
||||
options(options: RunOptions): this;
|
||||
|
||||
/**
|
||||
* Limits analysis to only the specified rules.
|
||||
*
|
||||
* @param rules Array of rule IDs, or a single rule ID as a string.
|
||||
* @remarks Cannot be used with `withTags`.
|
||||
*/
|
||||
withRules(rules: string | string[]): this;
|
||||
|
||||
/**
|
||||
* Limist analysis to only the specified tags.
|
||||
*
|
||||
* @param rules Array of tags, or a single tag as a string.
|
||||
* @remarks Cannot be used with `withRules`.
|
||||
*/
|
||||
withTags(tags: string | string[]): this;
|
||||
|
||||
/**
|
||||
* Set the list of rules to skip when running an analysis
|
||||
*
|
||||
* @param rules Array of rule IDs, or a single rule ID as a string.
|
||||
*/
|
||||
disableRules(rules: string | string[]): this;
|
||||
|
||||
/**
|
||||
* Configures aXe before running analyze.
|
||||
*
|
||||
* @param config aXe Configuration spec to use in analysis.
|
||||
*/
|
||||
configure(config: Spec): this;
|
||||
|
||||
/**
|
||||
* Perform analysis and retrieve results.
|
||||
* @param callback Function to execute when analysis completes.
|
||||
*/
|
||||
analyze(callback: (results: AxeAnalysis) => void): Promise<AxeAnalysis>;
|
||||
}
|
||||
|
||||
export const AxeBuilder: {
|
||||
(driver: WebDriver): AxeBuilder;
|
||||
new (driver: WebDriver): AxeBuilder;
|
||||
};
|
||||
6
types/axe-webdriverjs/package.json
Normal file
6
types/axe-webdriverjs/package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"axe-core": "^3.0.3"
|
||||
}
|
||||
}
|
||||
23
types/axe-webdriverjs/tsconfig.json
Normal file
23
types/axe-webdriverjs/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"axe-webdriverjs-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/axe-webdriverjs/tslint.json
Normal file
1
types/axe-webdriverjs/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -7,7 +7,7 @@ import Queue = require("bull");
|
||||
|
||||
const videoQueue = new Queue('video transcoding', 'redis://127.0.0.1:6379');
|
||||
const audioQueue = new Queue('audio transcoding', {redis: {port: 6379, host: '127.0.0.1'}}); // Specify Redis connection using object
|
||||
const imageQueue = new Queue('image transcoding');
|
||||
const imageQueue: Queue.Queue<{ image: string }> = new Queue('image transcoding');
|
||||
|
||||
videoQueue.process((job, done) => {
|
||||
// job.data contains the custom data passed when the job was created
|
||||
|
||||
67
types/bull/index.d.ts
vendored
67
types/bull/index.d.ts
vendored
@@ -6,6 +6,7 @@
|
||||
// Weeco <https://github.com/weeco>
|
||||
// Gabriel Terwesten <https://github.com/blaugold>
|
||||
// Oleg Repin <https://github.com/iamolegga>
|
||||
// David Koblas <https://github.com/koblas>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -87,13 +88,13 @@ declare namespace Bull {
|
||||
|
||||
type JobId = number | string;
|
||||
|
||||
interface Job {
|
||||
interface Job<T = any> {
|
||||
id: JobId;
|
||||
|
||||
/**
|
||||
* The custom data passed when the job was created
|
||||
*/
|
||||
data: any;
|
||||
data: T;
|
||||
|
||||
/**
|
||||
* How many attempts where made to run this job
|
||||
@@ -258,7 +259,7 @@ declare namespace Bull {
|
||||
next: number;
|
||||
}
|
||||
|
||||
interface Queue {
|
||||
interface Queue<T = any> {
|
||||
/**
|
||||
* Returns a promise that resolves when Redis is connected and the queue is ready to accept jobs.
|
||||
* This replaces the `ready` event emitted on Queue in previous verisons.
|
||||
@@ -276,7 +277,7 @@ declare namespace Bull {
|
||||
* Errors will be passed as a second argument to the "failed" event;
|
||||
* results, as a second argument to the "completed" event.
|
||||
*/
|
||||
process(callback: (job: Job, done: DoneCallback) => void): void;
|
||||
process(callback: (job: Job<T>, done: DoneCallback) => void): void;
|
||||
|
||||
/**
|
||||
* Defines a processing function for the jobs placed into a given Queue.
|
||||
@@ -294,7 +295,7 @@ declare namespace Bull {
|
||||
* If the promise is rejected, the error will be passed as a second argument to the "failed" event.
|
||||
* If it is resolved, its value will be the "completed" event's second argument.
|
||||
*/
|
||||
process(callback: ((job: Job) => void) | string): Promise<any>;
|
||||
process(callback: ((job: Job<T>) => void) | string): Promise<any>;
|
||||
|
||||
/**
|
||||
* Defines a processing function for the jobs placed into a given Queue.
|
||||
@@ -314,7 +315,7 @@ declare namespace Bull {
|
||||
*
|
||||
* @param concurrency Bull will then call you handler in parallel respecting this max number.
|
||||
*/
|
||||
process(concurrency: number, callback: ((job: Job) => void) | string): Promise<any>;
|
||||
process(concurrency: number, callback: ((job: Job<T>) => void) | string): Promise<any>;
|
||||
|
||||
/**
|
||||
* Defines a processing function for the jobs placed into a given Queue.
|
||||
@@ -329,7 +330,7 @@ declare namespace Bull {
|
||||
*
|
||||
* @param concurrency Bull will then call you handler in parallel respecting this max number.
|
||||
*/
|
||||
process(concurrency: number, callback: (job: Job, done: DoneCallback) => void): void;
|
||||
process(concurrency: number, callback: (job: Job<T>, done: DoneCallback) => void): void;
|
||||
|
||||
/**
|
||||
* Defines a named processing function for the jobs placed into a given Queue.
|
||||
@@ -350,7 +351,7 @@ declare namespace Bull {
|
||||
* @param name Bull will only call the handler if the job name matches
|
||||
*/
|
||||
// tslint:disable-next-line:unified-signatures
|
||||
process(name: string, callback: ((job: Job) => void) | string): Promise<any>;
|
||||
process(name: string, callback: ((job: Job<T>) => void) | string): Promise<any>;
|
||||
|
||||
/**
|
||||
* Defines a processing function for the jobs placed into a given Queue.
|
||||
@@ -366,7 +367,7 @@ declare namespace Bull {
|
||||
* @param name Bull will only call the handler if the job name matches
|
||||
*/
|
||||
// tslint:disable-next-line:unified-signatures
|
||||
process(name: string, callback: (job: Job, done: DoneCallback) => void): void;
|
||||
process(name: string, callback: (job: Job<T>, done: DoneCallback) => void): void;
|
||||
|
||||
/**
|
||||
* Defines a named processing function for the jobs placed into a given Queue.
|
||||
@@ -387,7 +388,7 @@ declare namespace Bull {
|
||||
* @param name Bull will only call the handler if the job name matches
|
||||
* @param concurrency Bull will then call you handler in parallel respecting this max number.
|
||||
*/
|
||||
process(name: string, concurrency: number, callback: ((job: Job) => void) | string): Promise<any>;
|
||||
process(name: string, concurrency: number, callback: ((job: Job<T>) => void) | string): Promise<any>;
|
||||
|
||||
/**
|
||||
* Defines a processing function for the jobs placed into a given Queue.
|
||||
@@ -403,21 +404,21 @@ declare namespace Bull {
|
||||
* @param name Bull will only call the handler if the job name matches
|
||||
* @param concurrency Bull will then call you handler in parallel respecting this max number.
|
||||
*/
|
||||
process(name: string, concurrency: number, callback: (job: Job, done: DoneCallback) => void): void;
|
||||
process(name: string, concurrency: number, callback: (job: Job<T>, done: DoneCallback) => void): void;
|
||||
|
||||
/**
|
||||
* Creates a new job and adds it to the queue.
|
||||
* If the queue is empty the job will be executed directly,
|
||||
* otherwise it will be placed in the queue and executed as soon as possible.
|
||||
*/
|
||||
add(data: any, opts?: JobOptions): Promise<Job>;
|
||||
add(data: T, opts?: JobOptions): Promise<Job<T>>;
|
||||
|
||||
/**
|
||||
* Creates a new named job and adds it to the queue.
|
||||
* If the queue is empty the job will be executed directly,
|
||||
* otherwise it will be placed in the queue and executed as soon as possible.
|
||||
*/
|
||||
add(name: string, data: any, opts?: JobOptions): Promise<Job>;
|
||||
add(name: string, data: T, opts?: JobOptions): Promise<Job<T>>;
|
||||
|
||||
/**
|
||||
* Returns a promise that resolves when the queue is paused.
|
||||
@@ -466,32 +467,32 @@ declare namespace Bull {
|
||||
* Returns a promise that will return the job instance associated with the jobId parameter.
|
||||
* If the specified job cannot be located, the promise callback parameter will be set to null.
|
||||
*/
|
||||
getJob(jobId: JobId): Promise<Job>;
|
||||
getJob(jobId: JobId): Promise<Job<T>>;
|
||||
|
||||
/**
|
||||
* Returns a promise that will return an array with the waiting jobs between start and end.
|
||||
*/
|
||||
getWaiting(start?: number, end?: number): Promise<Job[]>;
|
||||
getWaiting(start?: number, end?: number): Promise<Array<Job<T>>>;
|
||||
|
||||
/**
|
||||
* Returns a promise that will return an array with the active jobs between start and end.
|
||||
*/
|
||||
getActive(start?: number, end?: number): Promise<Job[]>;
|
||||
getActive(start?: number, end?: number): Promise<Array<Job<T>>>;
|
||||
|
||||
/**
|
||||
* Returns a promise that will return an array with the delayed jobs between start and end.
|
||||
*/
|
||||
getDelayed(start?: number, end?: number): Promise<Job[]>;
|
||||
getDelayed(start?: number, end?: number): Promise<Array<Job<T>>>;
|
||||
|
||||
/**
|
||||
* Returns a promise that will return an array with the completed jobs between start and end.
|
||||
*/
|
||||
getCompleted(start?: number, end?: number): Promise<Job[]>;
|
||||
getCompleted(start?: number, end?: number): Promise<Array<Job<T>>>;
|
||||
|
||||
/**
|
||||
* Returns a promise that will return an array with the failed jobs between start and end.
|
||||
*/
|
||||
getFailed(start?: number, end?: number): Promise<Job[]>;
|
||||
getFailed(start?: number, end?: number): Promise<Array<Job<T>>>;
|
||||
|
||||
/**
|
||||
* Returns JobInformation of repeatable jobs (ordered descending). Provide a start and/or an end
|
||||
@@ -502,7 +503,7 @@ declare namespace Bull {
|
||||
/**
|
||||
* ???
|
||||
*/
|
||||
nextRepeatableJob(name: string, data: any, opts: JobOptions): Promise<Job>;
|
||||
nextRepeatableJob(name: string, data: any, opts: JobOptions): Promise<Job<T>>;
|
||||
|
||||
/**
|
||||
* Removes a given repeatable job. The RepeatOptions and JobId needs to be the same as the ones
|
||||
@@ -565,7 +566,7 @@ declare namespace Bull {
|
||||
* @param status Status of the job to clean. Values are completed, wait, active, delayed, and failed. Defaults to completed.
|
||||
* @param limit Maximum amount of jobs to clean per call. If not provided will clean all matching jobs.
|
||||
*/
|
||||
clean(grace: number, status?: JobStatus, limit?: number): Promise<Job[]>;
|
||||
clean(grace: number, status?: JobStatus, limit?: number): Promise<Array<Job<T>>>;
|
||||
|
||||
/**
|
||||
* Listens to queue events
|
||||
@@ -580,28 +581,28 @@ declare namespace Bull {
|
||||
/**
|
||||
* A job has started. You can use `jobPromise.cancel()` to abort it
|
||||
*/
|
||||
on(event: 'active', callback: ActiveEventCallback): this;
|
||||
on(event: 'active', callback: ActiveEventCallback<T>): this;
|
||||
|
||||
/**
|
||||
* A job has been marked as stalled.
|
||||
* This is useful for debugging job workers that crash or pause the event loop.
|
||||
*/
|
||||
on(event: 'stalled', callback: StalledEventCallback): this;
|
||||
on(event: 'stalled', callback: StalledEventCallback<T>): this;
|
||||
|
||||
/**
|
||||
* A job's progress was updated
|
||||
*/
|
||||
on(event: 'progress', callback: ProgressEventCallback): this;
|
||||
on(event: 'progress', callback: ProgressEventCallback<T>): this;
|
||||
|
||||
/**
|
||||
* A job successfully completed with a `result`
|
||||
*/
|
||||
on(event: 'completed', callback: CompletedEventCallback): this;
|
||||
on(event: 'completed', callback: CompletedEventCallback<T>): this;
|
||||
|
||||
/**
|
||||
* A job failed with `err` as the reason
|
||||
*/
|
||||
on(event: 'failed', callback: FailedEventCallback): this;
|
||||
on(event: 'failed', callback: FailedEventCallback<T>): this;
|
||||
|
||||
/**
|
||||
* The queue has been paused
|
||||
@@ -619,7 +620,7 @@ declare namespace Bull {
|
||||
*
|
||||
* @see Queue#clean() for details
|
||||
*/
|
||||
on(event: 'cleaned', callback: CleanedEventCallback): this;
|
||||
on(event: 'cleaned', callback: CleanedEventCallback<T>): this;
|
||||
}
|
||||
|
||||
type EventCallback = () => void;
|
||||
@@ -633,17 +634,17 @@ declare namespace Bull {
|
||||
cancel(): void;
|
||||
}
|
||||
|
||||
type ActiveEventCallback = (job: Job, jobPromise?: JobPromise) => void;
|
||||
type ActiveEventCallback<T = any> = (job: Job<T>, jobPromise?: JobPromise) => void;
|
||||
|
||||
type StalledEventCallback = (job: Job) => void;
|
||||
type StalledEventCallback<T = any> = (job: Job<T>) => void;
|
||||
|
||||
type ProgressEventCallback = (job: Job, progress: any) => void;
|
||||
type ProgressEventCallback<T = any> = (job: Job<T>, progress: any) => void;
|
||||
|
||||
type CompletedEventCallback = (job: Job, result: any) => void;
|
||||
type CompletedEventCallback<T = any> = (job: Job<T>, result: any) => void;
|
||||
|
||||
type FailedEventCallback = (job: Job, error: Error) => void;
|
||||
type FailedEventCallback<T = any> = (job: Job<T>, error: Error) => void;
|
||||
|
||||
type CleanedEventCallback = (jobs: Job[], status: JobStatus) => void;
|
||||
type CleanedEventCallback<T = any> = (jobs: Array<Job<T>>, status: JobStatus) => void;
|
||||
}
|
||||
|
||||
export = Bull;
|
||||
|
||||
1
types/chart.js/index.d.ts
vendored
1
types/chart.js/index.d.ts
vendored
@@ -514,6 +514,7 @@ declare namespace Chart {
|
||||
ticks?: TickOptions;
|
||||
gridLines?: GridLineOptions;
|
||||
barThickness?: number;
|
||||
maxBarThickness?: number;
|
||||
scaleLabel?: ScaleTitleOptions;
|
||||
offset?: boolean;
|
||||
beforeUpdate?(scale?: any): void;
|
||||
|
||||
@@ -18,7 +18,7 @@ let buffer: Buffer;
|
||||
declare const modeNum: number;
|
||||
declare const modeStr: string;
|
||||
declare const encoding: string;
|
||||
declare const type: string;
|
||||
declare const symlinkType: "file" | "dir" | "junction";
|
||||
declare const flags: string;
|
||||
declare const srcpath: string;
|
||||
declare const dstpath: string;
|
||||
@@ -117,8 +117,8 @@ stats = fs.lstatSync(path);
|
||||
stats = fs.fstatSync(fd);
|
||||
fs.link(srcpath, dstpath, errorCallback);
|
||||
fs.linkSync(srcpath, dstpath);
|
||||
fs.symlink(srcpath, dstpath, type, errorCallback);
|
||||
fs.symlinkSync(srcpath, dstpath, type);
|
||||
fs.symlink(srcpath, dstpath, symlinkType, errorCallback);
|
||||
fs.symlinkSync(srcpath, dstpath, symlinkType);
|
||||
fs.readlink(path, (err: Error, linkString: string) => {
|
||||
});
|
||||
fs.realpath(path, (err: Error, resolvedPath: string) => {
|
||||
|
||||
4
types/fs-extra-promise-es6/index.d.ts
vendored
4
types/fs-extra-promise-es6/index.d.ts
vendored
@@ -90,7 +90,7 @@ export function fstatSync(fd: number): Stats;
|
||||
export function link(srcpath: string, dstpath: string, callback?: (err: Error) => void): void;
|
||||
export function linkSync(srcpath: string, dstpath: string): void;
|
||||
export function symlink(srcpath: string, dstpath: string, type?: string, callback?: (err: Error) => void): void;
|
||||
export function symlinkSync(srcpath: string, dstpath: string, type?: string): void;
|
||||
export function symlinkSync(srcpath: string, dstpath: string, type?: fs.symlink.Type): void;
|
||||
export function readlink(path: string, callback?: (err: Error, linkString: string) => void): void;
|
||||
export function realpath(path: string, callback?: (err: Error, resolvedPath: string) => void): void;
|
||||
export function realpath(path: string, cache: string, callback: (err: Error, resolvedPath: string) => void): void;
|
||||
@@ -189,7 +189,7 @@ export function statAsync(path: string): Promise<Stats>;
|
||||
export function lstatAsync(path: string): Promise<Stats>;
|
||||
export function fstatAsync(fd: number): Promise<Stats>;
|
||||
export function linkAsync(srcpath: string, dstpath: string): Promise<void>;
|
||||
export function symlinkAsync(srcpath: string, dstpath: string, type?: string): Promise<void>;
|
||||
export function symlinkAsync(srcpath: string, dstpath: string, type?: fs.symlink.Type): Promise<void>;
|
||||
export function readlinkAsync(path: string): Promise<string>;
|
||||
export function realpathAsync(path: string, cache?: string): Promise<string>;
|
||||
export function unlinkAsync(path: string): Promise<void>;
|
||||
|
||||
@@ -20,7 +20,7 @@ let buffer: Buffer;
|
||||
declare const modeNum: number;
|
||||
declare const modeStr: string;
|
||||
declare const encoding: string;
|
||||
declare const type: string;
|
||||
declare const symlinkType: "file" | "dir" | "junction";
|
||||
declare const flags: string;
|
||||
declare const srcpath: string;
|
||||
declare const dstpath: string;
|
||||
@@ -117,8 +117,8 @@ stats = fs.lstatSync(path);
|
||||
stats = fs.fstatSync(fd);
|
||||
fs.link(srcpath, dstpath, errorCallback);
|
||||
fs.linkSync(srcpath, dstpath);
|
||||
fs.symlink(srcpath, dstpath, type, errorCallback);
|
||||
fs.symlinkSync(srcpath, dstpath, type);
|
||||
fs.symlink(srcpath, dstpath, symlinkType, errorCallback);
|
||||
fs.symlinkSync(srcpath, dstpath, symlinkType);
|
||||
fs.readlink(path, (err: Error, linkString: string) => {
|
||||
});
|
||||
fs.realpath(path, (err: Error, resolvedPath: string) => {
|
||||
|
||||
5
types/fs-extra-promise/index.d.ts
vendored
5
types/fs-extra-promise/index.d.ts
vendored
@@ -7,9 +7,10 @@
|
||||
/// <reference types="node" />
|
||||
|
||||
import * as stream from 'stream';
|
||||
import { Stats } from 'fs';
|
||||
import * as fs from 'fs';
|
||||
import * as Promise from 'bluebird';
|
||||
import { CopyFilter, CopyOptions, ReadOptions, WriteOptions, MoveOptions } from 'fs-extra';
|
||||
import Stats = fs.Stats;
|
||||
|
||||
export * from 'fs-extra';
|
||||
|
||||
@@ -53,7 +54,7 @@ export function statAsync(path: string): Promise<Stats>;
|
||||
export function lstatAsync(path: string): Promise<Stats>;
|
||||
export function fstatAsync(fd: number): Promise<Stats>;
|
||||
export function linkAsync(srcpath: string, dstpath: string): Promise<void>;
|
||||
export function symlinkAsync(srcpath: string, dstpath: string, type?: string): Promise<void>;
|
||||
export function symlinkAsync(srcpath: string, dstpath: string, type?: fs.symlink.Type): Promise<void>;
|
||||
export function readlinkAsync(path: string): Promise<string>;
|
||||
export function realpathAsync(path: string, cache?: { [path: string]: string }): Promise<string>;
|
||||
export function unlinkAsync(path: string): Promise<void>;
|
||||
|
||||
8
types/fs-extra/index.d.ts
vendored
8
types/fs-extra/index.d.ts
vendored
@@ -10,7 +10,8 @@
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { Stats } from "fs";
|
||||
import * as fs from "fs";
|
||||
import Stats = fs.Stats;
|
||||
|
||||
export * from "fs";
|
||||
|
||||
@@ -206,8 +207,9 @@ export function rmdir(path: string | Buffer): Promise<void>;
|
||||
export function stat(path: string | Buffer, callback: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
|
||||
export function stat(path: string | Buffer): Promise<Stats>;
|
||||
|
||||
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type: string, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: string): Promise<void>;
|
||||
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type: fs.symlink.Type | undefined, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function symlink(srcpath: string | Buffer, dstpath: string | Buffer, type?: fs.symlink.Type): Promise<void>;
|
||||
|
||||
export function truncate(path: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function truncate(path: string | Buffer, len: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
|
||||
7
types/google-libphonenumber/index.d.ts
vendored
7
types/google-libphonenumber/index.d.ts
vendored
@@ -110,8 +110,15 @@ declare namespace libphonenumber {
|
||||
}
|
||||
}
|
||||
|
||||
class StringBuffer {
|
||||
constructor(opt_a1?: any, ...var_args: any[]);
|
||||
append(a1: any, opt_a2?: any, ...var_args: any[]): StringBuffer;
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
export class PhoneNumberUtil {
|
||||
static getInstance(): PhoneNumberUtil
|
||||
extractCountryCode(fullNumber: StringBuffer, nationalNumber: StringBuffer): number;
|
||||
format(phoneNumber: PhoneNumber, format: PhoneNumberFormat): string;
|
||||
formatOutOfCountryCallingNumber(phoneNumber: PhoneNumber, regionDialingFrom?: string): string;
|
||||
getNddPrefixForRegion(regionCode?: string, stripNonDigits?: boolean): string | undefined;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"axe-core": "^2.6.1"
|
||||
"axe-core": "^3.0.3"
|
||||
}
|
||||
}
|
||||
|
||||
1
types/jweixin/index.d.ts
vendored
1
types/jweixin/index.d.ts
vendored
@@ -210,6 +210,7 @@ declare namespace wx {
|
||||
localIds: string[];
|
||||
errMsg: string;
|
||||
}): void;
|
||||
cancel(): void;
|
||||
}
|
||||
/**
|
||||
* 从本地相册选择图片或使用相机拍照。
|
||||
|
||||
9
types/koa-webpack/index.d.ts
vendored
9
types/koa-webpack/index.d.ts
vendored
@@ -1,8 +1,9 @@
|
||||
// Type definitions for koa-webpack 5.x
|
||||
// Project: https://github.com/shellscape/koa-webpack#readme
|
||||
// Type definitions for koa-webpack 5.0
|
||||
// Project: https://github.com/shellscape/koa-webpack
|
||||
// Definitions by: Luka Maljic <https://github.com/malj>
|
||||
// Lee Benson <https://github.com/leebenson>
|
||||
// miZyind <https://github.com/miZyind>
|
||||
// Tomek Łaziuk <https://github.com/tlaziuk>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -25,11 +26,15 @@ declare namespace koaWebpack {
|
||||
|
||||
interface CombinedWebpackMiddleware {
|
||||
devMiddleware: webpackDevMiddleware.WebpackDevMiddleware;
|
||||
/**
|
||||
* @todo make this a `webpack-hot-client@^4.0.0` instance, no typings for v4 available yet
|
||||
*/
|
||||
hotClient: {
|
||||
close: () => void;
|
||||
options: webpackHotClient.Options;
|
||||
server: any;
|
||||
};
|
||||
close(callback?: () => any): void;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,4 +53,9 @@ koaWebpack({
|
||||
middleware.hotClient.close();
|
||||
middleware.hotClient.options;
|
||||
middleware.hotClient.server;
|
||||
|
||||
// close the middleware
|
||||
middleware.close(() => {
|
||||
console.log('closed');
|
||||
});
|
||||
});
|
||||
|
||||
6
types/node/index.d.ts
vendored
6
types/node/index.d.ts
vendored
@@ -3470,7 +3470,7 @@ declare module "fs" {
|
||||
* @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
|
||||
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
||||
*/
|
||||
export function symlink(target: PathLike, path: PathLike, type: string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
|
||||
/**
|
||||
* Asynchronous symlink(2) - Create a new symbolic link to an existing file.
|
||||
@@ -3489,6 +3489,8 @@ declare module "fs" {
|
||||
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
||||
*/
|
||||
export function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
|
||||
|
||||
export type Type = "dir" | "file" | "junction";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3498,7 +3500,7 @@ declare module "fs" {
|
||||
* @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
|
||||
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
||||
*/
|
||||
export function symlinkSync(target: PathLike, path: PathLike, type?: string | null): void;
|
||||
export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void;
|
||||
|
||||
/**
|
||||
* Asynchronous readlink(2) - read value of a symbolic link.
|
||||
|
||||
6
types/node/v8/index.d.ts
vendored
6
types/node/v8/index.d.ts
vendored
@@ -3371,7 +3371,7 @@ declare module "fs" {
|
||||
* @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
|
||||
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
||||
*/
|
||||
export function symlink(target: PathLike, path: PathLike, type: string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
|
||||
/**
|
||||
* Asynchronous symlink(2) - Create a new symbolic link to an existing file.
|
||||
@@ -3390,6 +3390,8 @@ declare module "fs" {
|
||||
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
||||
*/
|
||||
export function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
|
||||
|
||||
export type Type = "dir" | "file" | "junction";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3399,7 +3401,7 @@ declare module "fs" {
|
||||
* @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
|
||||
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
||||
*/
|
||||
export function symlinkSync(target: PathLike, path: PathLike, type?: string | null): void;
|
||||
export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void;
|
||||
|
||||
/**
|
||||
* Asynchronous readlink(2) - read value of a symbolic link.
|
||||
|
||||
6
types/node/v9/index.d.ts
vendored
6
types/node/v9/index.d.ts
vendored
@@ -3453,7 +3453,7 @@ declare module "fs" {
|
||||
* @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
|
||||
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
||||
*/
|
||||
export function symlink(target: PathLike, path: PathLike, type: string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
|
||||
|
||||
/**
|
||||
* Asynchronous symlink(2) - Create a new symbolic link to an existing file.
|
||||
@@ -3472,6 +3472,8 @@ declare module "fs" {
|
||||
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
||||
*/
|
||||
export function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
|
||||
|
||||
export type Type = "dir" | "file" | "junction";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3481,7 +3483,7 @@ declare module "fs" {
|
||||
* @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
|
||||
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
|
||||
*/
|
||||
export function symlinkSync(target: PathLike, path: PathLike, type?: string | null): void;
|
||||
export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void;
|
||||
|
||||
/**
|
||||
* Asynchronous readlink(2) - read value of a symbolic link.
|
||||
|
||||
2
types/nodegit/commit.d.ts
vendored
2
types/nodegit/commit.d.ts
vendored
@@ -21,7 +21,7 @@ export class Commit {
|
||||
static lookupPrefix(repo: Repository, id: Oid, len: number): Promise<Commit>;
|
||||
static createWithSignature(repo: Repository, commitContent: string, signature: string, signatureField: string): Promise<Oid>;
|
||||
|
||||
amend(updateRef: string, author: Signature, committer: Signature, messageEncoding: string, message: string, tree: Tree): Oid;
|
||||
amend(updateRef: string, author: Signature, committer: Signature, messageEncoding: string, message: string, tree: Tree): Promise<Oid>;
|
||||
author(): Signature;
|
||||
committer(): Signature;
|
||||
|
||||
|
||||
4
types/nodegit/index.d.ts
vendored
4
types/nodegit/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for nodegit 0.18
|
||||
// Type definitions for nodegit 0.22
|
||||
// Project: https://github.com/nodegit/nodegit
|
||||
// Definitions by: Dolan Miu <https://github.com/dolanmiu>
|
||||
// Definitions by: Dolan Miu <https://github.com/dolanmiu>, Tobias Nießen <https://github.com/tniessen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export { AnnotatedCommit } from './annotated-commit';
|
||||
|
||||
@@ -11,6 +11,7 @@ Git.Repository.init("path", 0).then((repository) => {
|
||||
const repo = new Git.Repository();
|
||||
const id = new Git.Oid();
|
||||
const ref = new Git.Reference();
|
||||
const tree = new Git.Tree();
|
||||
|
||||
// AnnotatedCommit Tests
|
||||
|
||||
@@ -52,6 +53,11 @@ Git.Branch.lookup(repo, "branch_name", Git.Branch.BRANCH.LOCAL).then((reference)
|
||||
// Use reference
|
||||
});
|
||||
|
||||
repo.getCommit("0123456789abcdef0123456789abcdef").then((commit) => {
|
||||
const sig = Git.Signature.now('John Doe', 'jd@example.com');
|
||||
const newCommit: Promise<Git.Oid> = commit.amend('ref', sig, sig, 'utf8', 'message', tree);
|
||||
});
|
||||
|
||||
const signature = Git.Signature.now("name", "email");
|
||||
signature.name();
|
||||
signature.email();
|
||||
|
||||
170
types/office-js/index.d.ts
vendored
170
types/office-js/index.d.ts
vendored
@@ -6435,43 +6435,6 @@ declare namespace Office {
|
||||
* Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of Office.context.mailbox.item. Refer to the Object Model pages for more information.
|
||||
*/
|
||||
interface Appointment extends Item {
|
||||
/**
|
||||
* Gets or sets the recurrence pattern of an appointment. Gets the recurrence pattern of a meeting request. Read and compose modes for appointment items. Read mode for meeting request items.
|
||||
*
|
||||
* The recurrence property returns a recurrence object for recurring appointments or meetings requests if an item is a series or an instance in a series. null is returned for single appointments and meeting requests of single appointments. undefined is returned for messages that are not meeting requests.
|
||||
*
|
||||
* Note: Meeting requests have an itemClass value of IPM.Schedule.Meeting.Request.
|
||||
*
|
||||
* Note: If the recurrence object is null, this indicates that the object is a single appointment or a meeting request of a single appointment and NOT a part of a series.
|
||||
*
|
||||
* [Api set: Mailbox Preview]
|
||||
*
|
||||
* @remarks
|
||||
*
|
||||
* Minimum permission level: ReadItem
|
||||
*
|
||||
* Applicable Outlook mode: Compose or read
|
||||
*/
|
||||
recurrence: Recurrence;
|
||||
|
||||
/**
|
||||
* Gets the id of the series that an instance belongs to.
|
||||
*
|
||||
* In OWA and Outlook, the seriesId returns the Exchange Web Services (EWS) ID of the parent (series) item that this item belongs to. However, in iOS and Android, the seriesId returns the REST ID of the parent item.
|
||||
*
|
||||
* Note: The identifier returned by the seriesId property is the same as the Exchange Web Services item identifier. The seriesId property is not identical to the Outlook IDs used by the Outlook REST API. Before making REST API calls using this value, it should be converted using Office.context.mailbox.convertToRestId. For more details, see {@link https://docs.microsoft.com/outlook/add-ins/use-rest-api | Use the Outlook REST APIs from an Outlook add-in}.
|
||||
*
|
||||
* The seriesId property returns null for items that do not have parent items such as single appointments, series items, or meeting requests and returns undefined for any other items that are not meeting requests.
|
||||
*
|
||||
* [Api set: Mailbox Preview]
|
||||
*
|
||||
* @remarks
|
||||
*
|
||||
* Minimum permission level: ReadItem
|
||||
*
|
||||
* Applicable Outlook mode: Compose or read
|
||||
*/
|
||||
seriesId: string;
|
||||
}
|
||||
/**
|
||||
* Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of Office.context.mailbox.item. Refer to the Object Model pages for more information.
|
||||
@@ -6570,11 +6533,26 @@ declare namespace Office {
|
||||
* Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of Office.context.mailbox.item. Refer to the Object Model pages for more information.
|
||||
*/
|
||||
interface AppointmentRead extends Appointment, ItemRead {
|
||||
/**
|
||||
* Gets the date and time that the appointment is to end.
|
||||
*
|
||||
* The end property is expressed as a Coordinated Universal Time (UTC) date and time value. You can use the convertToLocalClientTime method to convert the end property value to the client's local date and time.
|
||||
*
|
||||
* The end property returns a Date object.
|
||||
*
|
||||
* When you use the Time.setAsync method to set the end time, you should use the convertToUtcClientTime method to convert the local time on the client to UTC for the server.
|
||||
*
|
||||
* [Api set: Mailbox 1.0]
|
||||
*
|
||||
* @remarks
|
||||
*
|
||||
* Minimum permission level: ReadItem
|
||||
*
|
||||
* Applicable Outlook mode: Compose or read
|
||||
*/
|
||||
end: Date;
|
||||
/**
|
||||
* Gets or sets the location of an appointment.
|
||||
*
|
||||
* *Read mode*
|
||||
* Gets the location of an appointment.
|
||||
*
|
||||
* The location property returns a string that contains the location of the appointment.
|
||||
*
|
||||
@@ -6590,8 +6568,6 @@ declare namespace Office {
|
||||
/**
|
||||
* Provides access to the optional attendees of an event. The type of object and level of access depends on the mode of the current item.
|
||||
*
|
||||
* *Read mode*
|
||||
*
|
||||
* The optionalAttendees property returns an array that contains an EmailAddressDetails object for each optional attendee to the meeting.
|
||||
*
|
||||
* [Api set: Mailbox 1.0]
|
||||
@@ -6618,8 +6594,6 @@ declare namespace Office {
|
||||
/**
|
||||
* Provides access to the required attendees of an event. The type of object and level of access depends on the mode of the current item.
|
||||
*
|
||||
* *Read mode*
|
||||
*
|
||||
* The requiredAttendees property returns an array that contains an EmailAddressDetails object for each required attendee to the meeting.
|
||||
*
|
||||
* [Api set: Mailbox 1.0]
|
||||
@@ -6632,12 +6606,10 @@ declare namespace Office {
|
||||
*/
|
||||
requiredAttendees: EmailAddressDetails[];
|
||||
/**
|
||||
* Gets or sets the date and time that the appointment is to begin.
|
||||
* Gets the date and time that the appointment is to begin.
|
||||
*
|
||||
* The start property is expressed as a Coordinated Universal Time (UTC) date and time value. You can use the convertToLocalClientTime method to convert the value to the client's local date and time.
|
||||
*
|
||||
* *Read mode*
|
||||
*
|
||||
* The start property returns a Date object.
|
||||
*
|
||||
* [Api set: Mailbox 1.0]
|
||||
@@ -6650,6 +6622,7 @@ declare namespace Office {
|
||||
*/
|
||||
start: Date;
|
||||
}
|
||||
|
||||
interface AppointmentForm {
|
||||
/**
|
||||
* Gets an object that provides methods for manipulating the body of an item.
|
||||
@@ -6871,6 +6844,44 @@ declare namespace Office {
|
||||
*/
|
||||
notificationMessages: NotificationMessages;
|
||||
|
||||
/**
|
||||
* Gets or sets the recurrence pattern of an appointment. Gets the recurrence pattern of a meeting request. Read and compose modes for appointment items. Read mode for meeting request items.
|
||||
*
|
||||
* The recurrence property returns a recurrence object for recurring appointments or meetings requests if an item is a series or an instance in a series. null is returned for single appointments and meeting requests of single appointments. undefined is returned for messages that are not meeting requests.
|
||||
*
|
||||
* Note: Meeting requests have an itemClass value of IPM.Schedule.Meeting.Request.
|
||||
*
|
||||
* Note: If the recurrence object is null, this indicates that the object is a single appointment or a meeting request of a single appointment and NOT a part of a series.
|
||||
*
|
||||
* [Api set: Mailbox Preview]
|
||||
*
|
||||
* @remarks
|
||||
*
|
||||
* Minimum permission level: ReadItem
|
||||
*
|
||||
* Applicable Outlook mode: Compose or read
|
||||
*/
|
||||
recurrence: Recurrence;
|
||||
|
||||
/**
|
||||
* Gets the id of the series that an instance belongs to.
|
||||
*
|
||||
* In OWA and Outlook, the seriesId returns the Exchange Web Services (EWS) ID of the parent (series) item that this item belongs to. However, in iOS and Android, the seriesId returns the REST ID of the parent item.
|
||||
*
|
||||
* Note: The identifier returned by the seriesId property is the same as the Exchange Web Services item identifier. The seriesId property is not identical to the Outlook IDs used by the Outlook REST API. Before making REST API calls using this value, it should be converted using Office.context.mailbox.convertToRestId. For more details, see {@link https://docs.microsoft.com/outlook/add-ins/use-rest-api | Use the Outlook REST APIs from an Outlook add-in}.
|
||||
*
|
||||
* The seriesId property returns null for items that do not have parent items such as single appointments, series items, or meeting requests and returns undefined for any other items that are not meeting requests.
|
||||
*
|
||||
* [Api set: Mailbox Preview]
|
||||
*
|
||||
* @remarks
|
||||
*
|
||||
* Minimum permission level: ReadItem
|
||||
*
|
||||
* Applicable Outlook mode: Compose or read
|
||||
*/
|
||||
seriesId: string;
|
||||
|
||||
/**
|
||||
* Adds an event handler for a supported event.
|
||||
*
|
||||
@@ -6980,8 +6991,6 @@ declare namespace Office {
|
||||
*
|
||||
* The subject property gets or sets the entire subject of the item, as sent by the email server.
|
||||
*
|
||||
* *Compose mode*
|
||||
*
|
||||
* The subject property returns a Subject object that provides methods to get and set the subject.
|
||||
*
|
||||
* [Api set: Mailbox 1.0]
|
||||
@@ -7638,12 +7647,10 @@ declare namespace Office {
|
||||
*/
|
||||
normalizedSubject: string;
|
||||
/**
|
||||
* Gets or sets the description that appears in the subject field of an item.
|
||||
* Gets the description that appears in the subject field of an item.
|
||||
*
|
||||
* The subject property gets or sets the entire subject of the item, as sent by the email server.
|
||||
*
|
||||
* *Read mode*
|
||||
*
|
||||
* The subject property returns a string. Use the normalizedSubject property to get the subject minus any leading prefixes such as RE: and FW:.
|
||||
*
|
||||
* [Api set: Mailbox 1.0]
|
||||
@@ -7675,14 +7682,7 @@ declare namespace Office {
|
||||
*
|
||||
* @param formData A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB
|
||||
* OR
|
||||
* An object that contains body or attachment data and a callback function
|
||||
* htmlBody: A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB.
|
||||
* attachments: An array of JSON objects that are either file or item attachments.
|
||||
* attachments.type: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
||||
* attachments.name: A string that contains the name of the attachment, up to 255 characters in length.
|
||||
* attachments.url: Only used if type is set to file. The URI of the location for the file.
|
||||
* attachments.isLine: Only used if type is set to file. If true, indicates that the attachment will be shown inline in the message body, and should not be displayed in the attachment list.
|
||||
* attachments.itemId: Only used if type is set to item. The EWS item id of the attachment. This is a string up to 100 characters.
|
||||
* A ReplyFormData object that contains body or attachment data and a callback function
|
||||
*/
|
||||
displayReplyAllForm(formData: string | ReplyFormData): void;
|
||||
/**
|
||||
@@ -7706,14 +7706,7 @@ declare namespace Office {
|
||||
*
|
||||
* @param formData A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB.
|
||||
* OR
|
||||
* An object that contains body or attachment data and a callback function. The object is defined as follows.
|
||||
* htmlBody: A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB.
|
||||
* attachments: An array of JSON objects that are either file or item attachments.
|
||||
* attachments.type: Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
||||
* attachments.name: A string that contains the name of the attachment, up to 255 characters in length.
|
||||
* attachments.url: Only used if type is set to file. The URI of the location for the file.
|
||||
* attachments.isLine: Only used if type is set to file. If true, indicates that the attachment will be shown inline in the message body, and should not be displayed in the attachment list.
|
||||
* attachments.itemId: Only used if type is set to item. The EWS item id of the attachment. This is a string up to 100 characters.
|
||||
* A ReplyFormData object that contains body or attachment data and a callback function.
|
||||
*/
|
||||
displayReplyForm(formData: string | ReplyFormData): void;
|
||||
/**
|
||||
@@ -7915,7 +7908,8 @@ declare namespace Office {
|
||||
*/
|
||||
conversationId: string;
|
||||
}
|
||||
/**
|
||||
|
||||
/**
|
||||
* Important: This is an internal Outlook object, not directly exposed through existing interfaces. You should treat this as a mode of Office.context.mailbox.item. Refer to the Object Model pages for more information.
|
||||
*/
|
||||
interface MessageCompose extends Message, ItemCompose {
|
||||
@@ -7966,8 +7960,6 @@ declare namespace Office {
|
||||
/**
|
||||
* Provides access to the recipients on the To line of a message. The type of object and level of access depends on the mode of the current item.
|
||||
*
|
||||
* *Compose mode*
|
||||
*
|
||||
* The to property returns a Recipients object that provides methods to get or update the recipients on the To line of the message.
|
||||
*
|
||||
* [Api set: Mailbox 1.0]
|
||||
@@ -7987,8 +7979,6 @@ declare namespace Office {
|
||||
/**
|
||||
* Provides access to the Cc (carbon copy) recipients of a message. The type of object and level of access depends on the mode of the current item.
|
||||
*
|
||||
* *Read mode*
|
||||
*
|
||||
* The cc property returns an array that contains an EmailAddressDetails object for each recipient listed on the Cc line of the message. The collection is limited to a maximum of 100 members.
|
||||
*
|
||||
* [Api set: Mailbox 1.0]
|
||||
@@ -8049,8 +8039,6 @@ declare namespace Office {
|
||||
/**
|
||||
* Provides access to the recipients on the To line of a message. The type of object and level of access depends on the mode of the current item.
|
||||
*
|
||||
* *Read mode*
|
||||
*
|
||||
* The to property returns an array that contains an EmailAddressDetails object for each recipient listed on the To line of the message. The collection is limited to a maximum of 100 members.
|
||||
*
|
||||
* [Api set: Mailbox 1.0]
|
||||
@@ -9402,15 +9390,47 @@ declare namespace Office {
|
||||
firstDayOfWeek: MailboxEnums.Days;
|
||||
}
|
||||
|
||||
/**
|
||||
* A file or item attachment. Used when displaying a reply form.
|
||||
*/
|
||||
export interface ReplyFormAttachment {
|
||||
/**
|
||||
* Indicates the type of attachment. Must be file for a file attachment or item for an item attachment.
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* A string that contains the name of the attachment, up to 255 characters in length.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Only used if type is set to file. The URI of the location for the file.
|
||||
*/
|
||||
url?: string;
|
||||
/**
|
||||
* Only used if type is set to file. If true, indicates that the attachment will be shown inline in the message body, and should not be displayed in the attachment list.
|
||||
*/
|
||||
inLine?: boolean;
|
||||
/**
|
||||
* Only used if type is set to item. The EWS item id of the attachment. This is a string up to 100 characters.
|
||||
*/
|
||||
itemId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A ReplyFormData object that contains body or attachment data and a callback function. Used when displaying a reply form.
|
||||
*/
|
||||
interface ReplyFormData {
|
||||
/**
|
||||
* A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB.
|
||||
*/
|
||||
htmlBody?: string;
|
||||
/**
|
||||
* An array of ReplyFormAttachments that are either file or item attachments.
|
||||
*/
|
||||
attachments?: ReplyFormAttachment[];
|
||||
/**
|
||||
* When the reply display call completes, the function passed in the callback parameter is called with a single parameter, asyncResult, which is an AsyncResult object.
|
||||
*/
|
||||
callback?: (result: AsyncResult) => void;
|
||||
}
|
||||
/**
|
||||
|
||||
1
types/puppeteer/index.d.ts
vendored
1
types/puppeteer/index.d.ts
vendored
@@ -2,7 +2,6 @@
|
||||
// Project: https://github.com/GoogleChrome/puppeteer#readme
|
||||
// Definitions by: Marvin Hagemeister <https://github.com/marvinhagemeister>
|
||||
// Christopher Deutsch <https://github.com/cdeutsch>
|
||||
// jwbay <https://github.com/jwbay>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
|
||||
4
types/react-navigation/index.d.ts
vendored
4
types/react-navigation/index.d.ts
vendored
@@ -96,6 +96,10 @@ export interface NavigationLeafRoute<Params = NavigationParams> {
|
||||
* they will be defined by the router.
|
||||
*/
|
||||
key: string;
|
||||
/**
|
||||
* Index that represents the depth of the stack
|
||||
*/
|
||||
index: number;
|
||||
/**
|
||||
* For example 'Home'.
|
||||
* This is used as a key in a route config when creating a navigator.
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
} from 'react-native';
|
||||
import {
|
||||
createDrawerNavigator,
|
||||
createBottomTabNavigator,
|
||||
DrawerNavigatorConfig,
|
||||
NavigationAction,
|
||||
NavigationActions,
|
||||
@@ -451,3 +452,20 @@ class Page2 extends React.Component {
|
||||
return <RootNavigator ref={(instance: NavigationContainerComponent | null): void => { this.navigatorRef = instance; }} />;
|
||||
}
|
||||
}
|
||||
|
||||
const BottomStack = createBottomTabNavigator({
|
||||
Posts: {
|
||||
screen: Page2,
|
||||
navigationOptions: ({ navigation }: NavigationScreenProps) => {
|
||||
let tabBarVisible = true;
|
||||
|
||||
if (navigation.state.index > 0) {
|
||||
tabBarVisible = false;
|
||||
}
|
||||
|
||||
return {
|
||||
tabBarVisible
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
2
types/react-select/index.d.ts
vendored
2
types/react-select/index.d.ts
vendored
@@ -40,7 +40,7 @@ export type FilterOptionsHandler<TValue = OptionValues> = (options: Options<TVal
|
||||
export type InputRendererHandler = (props: { [key: string]: any }) => HandlerRendererResult;
|
||||
export type MenuRendererHandler<TValue = OptionValues> = (props: MenuRendererProps<TValue>) => HandlerRendererResult;
|
||||
export type OnCloseHandler = () => void;
|
||||
export type OnInputChangeHandler = (inputValue: string) => void;
|
||||
export type OnInputChangeHandler = (inputValue: string) => string;
|
||||
export type OnInputKeyDownHandler = React.KeyboardEventHandler<HTMLDivElement | HTMLInputElement>;
|
||||
export type OnMenuScrollToBottomHandler = () => void;
|
||||
export type OnOpenHandler = () => void;
|
||||
|
||||
58
types/react/index.d.ts
vendored
58
types/react/index.d.ts
vendored
@@ -547,7 +547,7 @@ declare namespace React {
|
||||
// Event System
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
interface SyntheticEvent<T> {
|
||||
interface SyntheticEvent<T = Element> {
|
||||
bubbles: boolean;
|
||||
/**
|
||||
* A reference to the element on which the event listener is registered.
|
||||
@@ -575,40 +575,40 @@ declare namespace React {
|
||||
type: string;
|
||||
}
|
||||
|
||||
interface ClipboardEvent<T> extends SyntheticEvent<T> {
|
||||
interface ClipboardEvent<T = Element> extends SyntheticEvent<T> {
|
||||
clipboardData: DataTransfer;
|
||||
nativeEvent: NativeClipboardEvent;
|
||||
}
|
||||
|
||||
interface CompositionEvent<T> extends SyntheticEvent<T> {
|
||||
interface CompositionEvent<T = Element> extends SyntheticEvent<T> {
|
||||
data: string;
|
||||
nativeEvent: NativeCompositionEvent;
|
||||
}
|
||||
|
||||
interface DragEvent<T> extends MouseEvent<T> {
|
||||
interface DragEvent<T = Element> extends MouseEvent<T> {
|
||||
dataTransfer: DataTransfer;
|
||||
nativeEvent: NativeDragEvent;
|
||||
}
|
||||
|
||||
interface FocusEvent<T> extends SyntheticEvent<T> {
|
||||
interface FocusEvent<T = Element> extends SyntheticEvent<T> {
|
||||
nativeEvent: NativeFocusEvent;
|
||||
relatedTarget: EventTarget;
|
||||
target: EventTarget & T;
|
||||
}
|
||||
|
||||
// tslint:disable-next-line:no-empty-interface
|
||||
interface FormEvent<T> extends SyntheticEvent<T> {
|
||||
interface FormEvent<T = Element> extends SyntheticEvent<T> {
|
||||
}
|
||||
|
||||
interface InvalidEvent<T> extends SyntheticEvent<T> {
|
||||
interface InvalidEvent<T = Element> extends SyntheticEvent<T> {
|
||||
target: EventTarget & T;
|
||||
}
|
||||
|
||||
interface ChangeEvent<T> extends SyntheticEvent<T> {
|
||||
interface ChangeEvent<T = Element> extends SyntheticEvent<T> {
|
||||
target: EventTarget & T;
|
||||
}
|
||||
|
||||
interface KeyboardEvent<T> extends SyntheticEvent<T> {
|
||||
interface KeyboardEvent<T = Element> extends SyntheticEvent<T> {
|
||||
altKey: boolean;
|
||||
charCode: number;
|
||||
ctrlKey: boolean;
|
||||
@@ -630,7 +630,7 @@ declare namespace React {
|
||||
which: number;
|
||||
}
|
||||
|
||||
interface MouseEvent<T> extends SyntheticEvent<T> {
|
||||
interface MouseEvent<T = Element> extends SyntheticEvent<T> {
|
||||
altKey: boolean;
|
||||
button: number;
|
||||
buttons: number;
|
||||
@@ -651,7 +651,7 @@ declare namespace React {
|
||||
shiftKey: boolean;
|
||||
}
|
||||
|
||||
interface TouchEvent<T> extends SyntheticEvent<T> {
|
||||
interface TouchEvent<T = Element> extends SyntheticEvent<T> {
|
||||
altKey: boolean;
|
||||
changedTouches: TouchList;
|
||||
ctrlKey: boolean;
|
||||
@@ -666,13 +666,13 @@ declare namespace React {
|
||||
touches: TouchList;
|
||||
}
|
||||
|
||||
interface UIEvent<T> extends SyntheticEvent<T> {
|
||||
interface UIEvent<T = Element> extends SyntheticEvent<T> {
|
||||
detail: number;
|
||||
nativeEvent: NativeUIEvent;
|
||||
view: AbstractView;
|
||||
}
|
||||
|
||||
interface WheelEvent<T> extends MouseEvent<T> {
|
||||
interface WheelEvent<T = Element> extends MouseEvent<T> {
|
||||
deltaMode: number;
|
||||
deltaX: number;
|
||||
deltaY: number;
|
||||
@@ -680,14 +680,14 @@ declare namespace React {
|
||||
nativeEvent: NativeWheelEvent;
|
||||
}
|
||||
|
||||
interface AnimationEvent<T> extends SyntheticEvent<T> {
|
||||
interface AnimationEvent<T = Element> extends SyntheticEvent<T> {
|
||||
animationName: string;
|
||||
elapsedTime: number;
|
||||
nativeEvent: NativeAnimationEvent;
|
||||
pseudoElement: string;
|
||||
}
|
||||
|
||||
interface TransitionEvent<T> extends SyntheticEvent<T> {
|
||||
interface TransitionEvent<T = Element> extends SyntheticEvent<T> {
|
||||
elapsedTime: number;
|
||||
nativeEvent: NativeTransitionEvent;
|
||||
propertyName: string;
|
||||
@@ -700,21 +700,21 @@ declare namespace React {
|
||||
|
||||
type EventHandler<E extends SyntheticEvent<any>> = { bivarianceHack(event: E): void }["bivarianceHack"];
|
||||
|
||||
type ReactEventHandler<T> = EventHandler<SyntheticEvent<T>>;
|
||||
type ReactEventHandler<T = Element> = EventHandler<SyntheticEvent<T>>;
|
||||
|
||||
type ClipboardEventHandler<T> = EventHandler<ClipboardEvent<T>>;
|
||||
type CompositionEventHandler<T> = EventHandler<CompositionEvent<T>>;
|
||||
type DragEventHandler<T> = EventHandler<DragEvent<T>>;
|
||||
type FocusEventHandler<T> = EventHandler<FocusEvent<T>>;
|
||||
type FormEventHandler<T> = EventHandler<FormEvent<T>>;
|
||||
type ChangeEventHandler<T> = EventHandler<ChangeEvent<T>>;
|
||||
type KeyboardEventHandler<T> = EventHandler<KeyboardEvent<T>>;
|
||||
type MouseEventHandler<T> = EventHandler<MouseEvent<T>>;
|
||||
type TouchEventHandler<T> = EventHandler<TouchEvent<T>>;
|
||||
type UIEventHandler<T> = EventHandler<UIEvent<T>>;
|
||||
type WheelEventHandler<T> = EventHandler<WheelEvent<T>>;
|
||||
type AnimationEventHandler<T> = EventHandler<AnimationEvent<T>>;
|
||||
type TransitionEventHandler<T> = EventHandler<TransitionEvent<T>>;
|
||||
type ClipboardEventHandler<T = Element> = EventHandler<ClipboardEvent<T>>;
|
||||
type CompositionEventHandler<T = Element> = EventHandler<CompositionEvent<T>>;
|
||||
type DragEventHandler<T = Element> = EventHandler<DragEvent<T>>;
|
||||
type FocusEventHandler<T = Element> = EventHandler<FocusEvent<T>>;
|
||||
type FormEventHandler<T = Element> = EventHandler<FormEvent<T>>;
|
||||
type ChangeEventHandler<T = Element> = EventHandler<ChangeEvent<T>>;
|
||||
type KeyboardEventHandler<T = Element> = EventHandler<KeyboardEvent<T>>;
|
||||
type MouseEventHandler<T = Element> = EventHandler<MouseEvent<T>>;
|
||||
type TouchEventHandler<T = Element> = EventHandler<TouchEvent<T>>;
|
||||
type UIEventHandler<T = Element> = EventHandler<UIEvent<T>>;
|
||||
type WheelEventHandler<T = Element> = EventHandler<WheelEvent<T>>;
|
||||
type AnimationEventHandler<T = Element> = EventHandler<AnimationEvent<T>>;
|
||||
type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
|
||||
|
||||
//
|
||||
// Props / DOM Attributes
|
||||
|
||||
8
types/snekfetch/index.d.ts
vendored
8
types/snekfetch/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for snekfetch 4.0
|
||||
// Project: https://github.com/GusCaplan/snekfetch
|
||||
// Definitions by: Iker Pérez Brunelli <https://github.com/DarkerTV>
|
||||
// Definitions by: Iker Pérez Brunelli <https://github.com/ANekoIsFineToo>
|
||||
// Shayne Hartford <https://github.com/ShayBox>
|
||||
// Yukine <https://github.com/Dev-Yukine>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -110,13 +110,13 @@ declare class Snekfetch extends Readable {
|
||||
static unlock(url: string, opts?: Snekfetch.SnekfetchOptions): Snekfetch;
|
||||
static unsubscribe(url: string, opts?: Snekfetch.SnekfetchOptions): Snekfetch;
|
||||
|
||||
query(name: string | { [key: string]: string | string[] }, value?: string): Snekfetch;
|
||||
query(name: string | { [key: string]: any }, value?: string): Snekfetch;
|
||||
|
||||
set(name: string | { [key: string]: string | string[] }, value?: string | string[]): Snekfetch;
|
||||
set(name: string | { [key: string]: any }, value?: string): Snekfetch;
|
||||
|
||||
attach(name: string, data: string | object | Buffer, filename?: string): Snekfetch;
|
||||
|
||||
send(data?: string|Buffer|object): Snekfetch;
|
||||
send(data?: string | Buffer | object): Snekfetch;
|
||||
|
||||
then(): Promise<Snekfetch.SnekfetchResponse>;
|
||||
then<T>(resolver: (res: Snekfetch.SnekfetchResponse) => T, rejector?: (err: Error) => any): Promise<T>;
|
||||
|
||||
8
types/ws/index.d.ts
vendored
8
types/ws/index.d.ts
vendored
@@ -168,6 +168,12 @@ declare namespace WebSocket {
|
||||
maxPayload?: number;
|
||||
}
|
||||
|
||||
interface AddressInfo {
|
||||
address: string;
|
||||
family: string;
|
||||
port: number;
|
||||
}
|
||||
|
||||
// WebSocket Server
|
||||
class Server extends events.EventEmitter {
|
||||
options: ServerOptions;
|
||||
@@ -176,7 +182,7 @@ declare namespace WebSocket {
|
||||
|
||||
constructor(options?: ServerOptions, callback?: () => void);
|
||||
|
||||
address(): net.AddressInfo | string;
|
||||
address(): AddressInfo | string;
|
||||
close(cb?: (err?: Error) => void): void;
|
||||
handleUpgrade(request: http.IncomingMessage, socket: net.Socket,
|
||||
upgradeHead: Buffer, callback: (client: WebSocket) => void): void;
|
||||
|
||||
5
types/xml2js/index.d.ts
vendored
5
types/xml2js/index.d.ts
vendored
@@ -5,6 +5,7 @@
|
||||
// Christopher Currens <https://github.com/ccurrens>
|
||||
// Edward Hinkle <https://github.com/edwardhinkle>
|
||||
// Behind The Math <https://github.com/BehindTheMath>
|
||||
// Claas Ahlrichs <https://github.com/claasahl>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node"/>
|
||||
@@ -34,7 +35,7 @@ export interface Options {
|
||||
async?: boolean;
|
||||
attrkey?: string;
|
||||
attrNameProcessors?: Array<(name: string) => any>;
|
||||
attrValueProcessors?: Array<(name: string) => any>;
|
||||
attrValueProcessors?: Array<(value: string, name: string) => any>;
|
||||
charkey?: string;
|
||||
charsAsChildren?: boolean;
|
||||
childkey?: string;
|
||||
@@ -52,7 +53,7 @@ export interface Options {
|
||||
tagNameProcessors?: Array<(name: string) => any>;
|
||||
trim?: boolean;
|
||||
validator?: Function;
|
||||
valueProcessors?: Array<(name: string) => any>;
|
||||
valueProcessors?: Array<(value: string, name: string) => any>;
|
||||
xmlns?: boolean;
|
||||
}
|
||||
|
||||
|
||||
17
types/xrm/index.d.ts
vendored
17
types/xrm/index.d.ts
vendored
@@ -4198,6 +4198,13 @@ declare namespace Xrm {
|
||||
confirmed: boolean;
|
||||
}
|
||||
|
||||
interface OpenFormResult {
|
||||
/**
|
||||
* Identifies the record displayed or created
|
||||
*/
|
||||
savedEntityReference: LookupValue[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Details to show in the Error dialog
|
||||
*/
|
||||
@@ -4354,31 +4361,31 @@ declare namespace Xrm {
|
||||
* @param alertStrings The strings to be used in the alert dialog.
|
||||
* @param alertOptions The height and width options for alert dialog
|
||||
*/
|
||||
openAlertDialog(alertStrings: Navigation.AlertStrings, alertOptions: Navigation.DialogSizeOptions): Async.PromiseLike<any>;
|
||||
openAlertDialog(alertStrings: Navigation.AlertStrings, alertOptions?: Navigation.DialogSizeOptions): Async.PromiseLike<any>;
|
||||
|
||||
/**
|
||||
* Displays a confirmation dialog box containing a message and two buttons.
|
||||
* @param confirmStrings The strings to be used in the confirm dialog.
|
||||
* @param confirmOptions The height and width options for alert dialog
|
||||
*/
|
||||
openConfirmDialog(confirmStrings: Navigation.ConfirmStrings, confirmOptions: Navigation.DialogSizeOptions): Async.PromiseLike<Navigation.ConfirmResult>;
|
||||
openConfirmDialog(confirmStrings: Navigation.ConfirmStrings, confirmOptions?: Navigation.DialogSizeOptions): Async.PromiseLike<Navigation.ConfirmResult>;
|
||||
|
||||
/**
|
||||
* Displays an error dialog.
|
||||
* @param confirmStrings The strings to be used in the confirm dialog.
|
||||
* @param confirmOptions The height and width options for alert dialog
|
||||
*/
|
||||
openConfirmDialog(errorOptions: Navigation.ErrorDialogOptions): Async.PromiseLike<any>;
|
||||
openErrorDialog(errorOptions: Navigation.ErrorDialogOptions): Async.PromiseLike<any>;
|
||||
|
||||
/**
|
||||
* Opens a file.
|
||||
*/
|
||||
openFile(file: Navigation.FileDetails, openFileOptions: XrmEnum.OpenFileOptions): void;
|
||||
openFile(file: Navigation.FileDetails, openFileOptions?: XrmEnum.OpenFileOptions): void;
|
||||
|
||||
/**
|
||||
* Opens an entity form or a quick create form.
|
||||
*/
|
||||
openForm(entityFormOptions: Navigation.EntityFormOptions, formParameters: Utility.OpenParameters): Async.PromiseLike<any>;
|
||||
openForm(entityFormOptions: Navigation.EntityFormOptions, formParameters?: Utility.OpenParameters): Async.PromiseLike<Navigation.OpenFormResult>;
|
||||
|
||||
/**
|
||||
* Opens a URL, including file URLs.
|
||||
|
||||
Reference in New Issue
Block a user