Skip to content

Commit e50f887

Browse files
author
Andy
authored
Use new strict-export-declare-modifiers lint rule (DefinitelyTyped#15844)
1 parent 94f2f1d commit e50f887

File tree

71 files changed

+417
-408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+417
-408
lines changed

types/bootstrap.v3.datetimepicker/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import * as moment from "moment";
1616

1717
export as namespace BootstrapV3DatetimePicker;
1818

19-
type InputParser = (input: string | Date | moment.Moment) => moment.Moment;
19+
export type InputParser = (input: string | Date | moment.Moment) => moment.Moment;
2020

2121
export interface Datetimepicker {
2222
/** Clears the datepicker by setting the value to null */
@@ -576,7 +576,7 @@ export interface UpdateEvent extends JQueryEventObject {
576576
viewDate: moment.Moment;
577577
}
578578

579-
type EventName = "dp.show" | "dp.hide" | "dp.error";
579+
export type EventName = "dp.show" | "dp.hide" | "dp.error";
580580

581581
declare global {
582582
interface JQuery {

types/code/index.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export function thrownAt(error?: Error): CodeError;
1616
/** Configure code. */
1717
export const settings: Settings;
1818

19-
type AssertionChain<T> = Assertion<T> & Expectation<T>;
19+
export type AssertionChain<T> = Assertion<T> & Expectation<T>;
2020

21-
type Assertion<T> = Grammar<T> & Flags<T>;
21+
export type Assertion<T> = Grammar<T> & Flags<T>;
2222

23-
type Expectation<T> = Types<T> & Values<T>;
23+
export type Expectation<T> = Types<T> & Values<T>;
2424

25-
interface Grammar<T> {
25+
export interface Grammar<T> {
2626
/** Connecting word. */
2727
a: AssertionChain<T>;
2828
/** Connecting word. */
@@ -41,7 +41,7 @@ interface Grammar<T> {
4141
to: AssertionChain<T>;
4242
}
4343

44-
interface Flags<T> {
44+
export interface Flags<T> {
4545
/** Inverses the expected result of any assertion */
4646
not: AssertionChain<T>;
4747
/**
@@ -66,7 +66,7 @@ interface Flags<T> {
6666
shallow: AssertionChain<T>;
6767
}
6868

69-
interface Types<T> {
69+
export interface Types<T> {
7070
/** Asserts that the reference value is an arguments object. */
7171
arguments(): AssertionChain<T>;
7272
/** Asserts that the reference value is an Array. */
@@ -91,7 +91,7 @@ interface Types<T> {
9191
object(): AssertionChain<T>;
9292
}
9393

94-
interface Values<T> {
94+
export interface Values<T> {
9595
/** Asserts that the reference value is true. */
9696
true(): AssertionChain<T>;
9797
/** Asserts that the reference value is false. */
@@ -170,7 +170,7 @@ interface Values<T> {
170170
throws(type?: any, message?: string | RegExp): AssertionChain<T>;
171171
}
172172

173-
interface Settings {
173+
export interface Settings {
174174
/**
175175
* Truncate long assertion error messages for readability?
176176
* Defaults to true.
@@ -183,7 +183,7 @@ interface Settings {
183183
comparePrototypes?: boolean;
184184
}
185185

186-
interface CodeError {
186+
export interface CodeError {
187187
filename: string;
188188
line: string;
189189
column: string;

types/codependency/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77

88
export as namespace codependency;
99

10-
interface DependencyInfo {
10+
export interface DependencyInfo {
1111
supportedRange: string|null;
1212
installedVersion: string|null;
1313
isInstalled: boolean|null;
1414
isValid: boolean|null;
1515
pkgPath: string;
1616
}
1717

18-
interface RequirePeerFunctionOptions {
18+
export interface RequirePeerFunctionOptions {
1919
optional?: boolean;
2020
dontThrow?: boolean;
2121
}
2222

23-
interface RequirePeerFunction {
23+
export interface RequirePeerFunction {
2424
(name: string, options?: RequirePeerFunctionOptions): any;
2525
resolve(name: string): DependencyInfo;
2626
}

types/colors/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55

6-
interface Color {
6+
export interface Color {
77
(text: string): string;
88

99
strip: Color;

types/connect-ensure-login/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import { RequestHandler } from "express";
77

8-
interface LoggedInOptions {
8+
export interface LoggedInOptions {
99
/**
1010
* URL to redirect to for login, defaults to _/login_
1111
*/
@@ -15,7 +15,7 @@ interface LoggedInOptions {
1515
*/
1616
setRedirectTo?: boolean;
1717
}
18-
interface LoggedOutOptions {
18+
export interface LoggedOutOptions {
1919
/**
2020
* URL to redirect to in logged in, defaults to _/_
2121
*/

types/d3-array/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type Primitive = number | string | boolean | Date;
1717
/**
1818
* Administrivia: anything with a valueOf(): number method is comparable, so we allow it in numeric operations
1919
*/
20-
interface Numeric {
20+
export interface Numeric {
2121
valueOf(): number;
2222
}
2323

types/d3-selection/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export function selectAll<GElement extends BaseType, OldDatum>(nodes: ArrayLike<
159159
* The third generic "PElement" refers to the type of the parent element(s) in the D3 selection.
160160
* The fourth generic "PDatum" refers to the type of the datum of the parent element(s).
161161
*/
162-
interface Selection<GElement extends BaseType, Datum, PElement extends BaseType, PDatum> {
162+
export interface Selection<GElement extends BaseType, Datum, PElement extends BaseType, PDatum> {
163163
// Sub-selection -------------------------
164164

165165
/**
@@ -852,7 +852,7 @@ interface Selection<GElement extends BaseType, Datum, PElement extends BaseType,
852852
* Selects the root element, document.documentElement. This function can also be used to test for selections
853853
* (instanceof d3.selection) or to extend the selection prototype.
854854
*/
855-
type SelectionFn = () => Selection<HTMLElement, any, null, undefined>;
855+
export type SelectionFn = () => Selection<HTMLElement, any, null, undefined>;
856856

857857
/**
858858
* Selects the root element, document.documentElement. This function can also be used to test for selections
@@ -867,7 +867,7 @@ export const selection: SelectionFn;
867867
/**
868868
* A D3 Base Event
869869
*/
870-
interface BaseEvent {
870+
export interface BaseEvent {
871871
/**
872872
* Event type
873873
*/

types/d3-zoom/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { ZoomView, ZoomInterpolator } from 'd3-interpolate';
1717
* without 'd3-zoom' (and related code in 'd3-selection') trying to use properties internally which would otherwise not
1818
* be supported.
1919
*/
20-
type ZoomedElementBaseType = Element;
20+
export type ZoomedElementBaseType = Element;
2121

2222
/**
2323
* Minimal interface for a continuous scale.

types/dagre-d3/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ declare module "dagre" {
2727
}
2828
}
2929

30-
interface Render {
30+
export interface Render {
3131
// see http://cpettitt.github.io/project/dagre-d3/latest/demo/user-defined.html for example usage
3232
arrows(): { [arrowStyleName: string]: (parent: d3.Selection<any>, id: string, edge: dagre.Edge, type: string) => void };
3333
(selection: d3.Selection<any>, g: dagre.graphlib.Graph): void;

types/dagre/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export namespace graphlib {
2020

2121
export function layout(graph: graphlib.Graph): void;
2222

23-
interface Edge {
23+
export interface Edge {
2424
v: string;
2525
w: string;
2626
}

0 commit comments

Comments
 (0)