Skip to content

Commit

Permalink
Create a test that repros the /// <reference lib="___" /> error fro…
Browse files Browse the repository at this point in the history
…m GitHub issue #922
  • Loading branch information
pgonzal committed Nov 16, 2018
1 parent 37991d9 commit a7647b6
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ export declare class ReexportedClass {
getValue(): string;
}

/** @public */
export declare class ReferenceLibDirective extends Intl.PluralRules {
}

/**
* This class has links such as {@link TypeReferencesInAedoc}.
* @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ export declare class ReexportedClass {
getValue(): string;
}

/** @public */
export declare class ReferenceLibDirective extends Intl.PluralRules {
}

/**
* This class has links such as {@link TypeReferencesInAedoc}.
* @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ export declare class ReexportedClass {
getValue(): string;
}

/** @public */
export declare class ReferenceLibDirective extends Intl.PluralRules {
}

/**
* This class has links such as {@link TypeReferencesInAedoc}.
* @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ class ReexportedClass {
getValue(): string;
}

// @public (undocumented)
class ReferenceLibDirective extends Intl.PluralRules {
}

// @public
class TypeReferencesInAedoc {
getValue(arg1: TypeReferencesInAedoc): TypeReferencesInAedoc;
Expand Down
2 changes: 1 addition & 1 deletion build-tests/api-extractor-test-01/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@types/jest": "21.1.10",
"@types/node": "8.5.8",
"fs-extra": "~7.0.1",
"typescript": "~3.0.3"
"typescript": "~3.1.6"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.

/// <reference lib="es2018.intl" />

/** @public */
export class ReferenceLibDirective extends Intl.PluralRules {
}
1 change: 1 addition & 0 deletions build-tests/api-extractor-test-01/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,6 @@ export { default as IInterfaceAsDefaultExport } from './IInterfaceAsDefaultExpor
export { ReexportedClass3 as ReexportedClass } from './ReexportedClass3/ReexportedClass3';

export { TypeReferencesInAedoc } from './TypeReferencesInAedoc';
export { ReferenceLibDirective } from './ReferenceLibDirective';

export { VARIABLE } from './variableDeclarations';
2 changes: 1 addition & 1 deletion common/config/rush/common-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"6.0.9"
],
"typescript": [
"~2.4.2"
"~2.4.2", "~3.1.6"
],
"@microsoft/rush-stack-compiler": [
"~0.2.0"
Expand Down

0 comments on commit a7647b6

Please sign in to comment.