Merge pull request #56 from hasaneyldrm/readme-fix-merged
Fix TypeScript interface and Python example in README (rebased)
This commit is contained in:
@@ -335,6 +335,8 @@ print(ex["instructions"]["tr"]) # Turkish
|
|||||||
print(ex["instructions"]["ru"]) # Russian
|
print(ex["instructions"]["ru"]) # Russian
|
||||||
print(ex["instructions"]["zh"]) # Chinese
|
print(ex["instructions"]["zh"]) # Chinese
|
||||||
print(ex["instructions"]["hi"]) # Hindi
|
print(ex["instructions"]["hi"]) # Hindi
|
||||||
|
print(ex["instructions"]["pl"]) # Polish
|
||||||
|
print(ex["instructions"]["ko"]) # Korean
|
||||||
print(ex["instructions"]["fr"]) # French
|
print(ex["instructions"]["fr"]) # French
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -411,12 +413,24 @@ interface Exercise {
|
|||||||
ko: string;
|
ko: string;
|
||||||
fr: string;
|
fr: string;
|
||||||
};
|
};
|
||||||
|
instruction_steps: {
|
||||||
|
en: string[];
|
||||||
|
es: string[];
|
||||||
|
it: string[];
|
||||||
|
tr: string[];
|
||||||
|
ru: string[];
|
||||||
|
zh: string[];
|
||||||
|
hi: string[];
|
||||||
|
pl: string[];
|
||||||
|
ko: string[];
|
||||||
|
fr: string[];
|
||||||
|
};
|
||||||
muscle_group: string;
|
muscle_group: string;
|
||||||
secondary_muscles: string[];
|
secondary_muscles: string[];
|
||||||
target: string;
|
target: string;
|
||||||
media_id: string | null;
|
media_id: string;
|
||||||
image: string | null;
|
image: string;
|
||||||
gif_url: string | null;
|
gif_url: string;
|
||||||
attribution: string;
|
attribution: string;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user