Use new strict-export-declare-modifiers lint rule (#15844)

This commit is contained in:
Andy
2017-04-14 08:20:12 -07:00
committed by GitHub
parent 94f2f1d455
commit e50f8878a5
71 changed files with 415 additions and 406 deletions

18
types/code/index.d.ts vendored
View File

@@ -16,13 +16,13 @@ export function thrownAt(error?: Error): CodeError;
/** Configure code. */
export const settings: Settings;
type AssertionChain<T> = Assertion<T> & Expectation<T>;
export type AssertionChain<T> = Assertion<T> & Expectation<T>;
type Assertion<T> = Grammar<T> & Flags<T>;
export type Assertion<T> = Grammar<T> & Flags<T>;
type Expectation<T> = Types<T> & Values<T>;
export type Expectation<T> = Types<T> & Values<T>;
interface Grammar<T> {
export interface Grammar<T> {
/** Connecting word. */
a: AssertionChain<T>;
/** Connecting word. */
@@ -41,7 +41,7 @@ interface Grammar<T> {
to: AssertionChain<T>;
}
interface Flags<T> {
export interface Flags<T> {
/** Inverses the expected result of any assertion */
not: AssertionChain<T>;
/**
@@ -66,7 +66,7 @@ interface Flags<T> {
shallow: AssertionChain<T>;
}
interface Types<T> {
export interface Types<T> {
/** Asserts that the reference value is an arguments object. */
arguments(): AssertionChain<T>;
/** Asserts that the reference value is an Array. */
@@ -91,7 +91,7 @@ interface Types<T> {
object(): AssertionChain<T>;
}
interface Values<T> {
export interface Values<T> {
/** Asserts that the reference value is true. */
true(): AssertionChain<T>;
/** Asserts that the reference value is false. */
@@ -170,7 +170,7 @@ interface Values<T> {
throws(type?: any, message?: string | RegExp): AssertionChain<T>;
}
interface Settings {
export interface Settings {
/**
* Truncate long assertion error messages for readability?
* Defaults to true.
@@ -183,7 +183,7 @@ interface Settings {
comparePrototypes?: boolean;
}
interface CodeError {
export interface CodeError {
filename: string;
line: string;
column: string;