Skip to content

Commit 5629014

Browse files
author
Nikhil Thorat
authored
Add declare to the types for PoseNet so they don't get rewritten. (#257)
1 parent 41f6001 commit 5629014

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

posenet/src/types.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@
1717

1818
import * as tf from '@tensorflow/tfjs-core';
1919

20-
export type Vector2D = {
20+
export declare type Vector2D = {
2121
y: number,
2222
x: number
2323
};
2424

25-
export type Part = {
25+
export declare type Part = {
2626
heatmapX: number,
2727
heatmapY: number,
2828
id: number
2929
};
3030

31-
export type PartWithScore = {
31+
export declare type PartWithScore = {
3232
score: number,
3333
part: Part
3434
};
3535

36-
export type Keypoint = {
36+
export declare type Keypoint = {
3737
score: number,
3838
position: Vector2D,
3939
part: string
4040
};
4141

42-
export type Pose = {
42+
export declare type Pose = {
4343
keypoints: Keypoint[],
4444
score: number,
4545
};
@@ -49,6 +49,6 @@ export type PosenetInput =
4949

5050
export type TensorBuffer3D = tf.TensorBuffer<tf.Rank.R3>;
5151

52-
export interface Padding {
52+
export declare interface Padding {
5353
top: number, bottom: number, left: number, right: number
5454
}

0 commit comments

Comments
 (0)