mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Use new strict-export-declare-modifiers lint rule (#15844)
This commit is contained in:
18
types/code/index.d.ts
vendored
18
types/code/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user