Skip to content

Commit a14633e

Browse files
octogonzjavier-garcia-meteologica
authored andcommitted
Add example of a generic type to api-extractor-lib1-test
1 parent 613880a commit a14633e

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

build-tests/api-extractor-lib1-test/etc/api-extractor-lib1-test.api.md

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ export class Lib1Class extends Lib1ForgottenExport {
1414
writeableProperty: string;
1515
}
1616

17+
// @public (undocumented)
18+
export type Lib1GenericType<T1, T2> = {
19+
one: T1;
20+
two: T2;
21+
};
22+
1723
// @alpha (undocumented)
1824
export interface Lib1Interface {
1925
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
4+
/** @public */
5+
export type Lib1GenericType<T1, T2> = {
6+
one: T1;
7+
two: T2;
8+
};

build-tests/api-extractor-lib1-test/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ export class Lib1Class extends Lib1ForgottenExport {
2727
/** @alpha */
2828
export interface Lib1Interface {}
2929

30+
export { Lib1GenericType } from './Lib1GenericType';
3031
export { Lib1Namespace } from './Lib1Namespace';

0 commit comments

Comments
 (0)