Skip to content

Commit 016b8c5

Browse files
author
Nikhil Thorat
authored
Loosen @doc typings. (tensorflow#839)
1 parent 6322073 commit 016b8c5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/doc.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,17 @@ export interface HeadingMap {
2727
export type Heading = keyof HeadingMap;
2828
export type Namespace = 'losses'|'image'|'train';
2929

30-
export interface DocInfo<H extends Heading> {
31-
heading: H;
32-
subheading?: HeadingMap[H];
33-
namespace?: Namespace;
30+
export interface DocInfo { //<H extends Heading> {
31+
heading: string; // H;
32+
subheading?: string; // HeadingMap[H];
33+
namespace?: string; // Namespace;
3434
subclasses?: string[];
3535
useDocsFrom?: string;
36+
configParamIndices?: number[];
3637
}
3738

3839
// Pass through function that does nothing. Only used for documentation.
39-
export function doc<H extends Heading>(info: DocInfo<H>) {
40+
export function doc(info: DocInfo) { //<H extends Heading>(info: DocInfo<H>) {
4041
// tslint:disable-next-line:no-any
4142
return (...args: any[]) => {};
4243
}

0 commit comments

Comments
 (0)