diff --git a/twitter-openapi-typescript/package.json b/twitter-openapi-typescript/package.json index d924c8e..5c0b3a6 100644 --- a/twitter-openapi-typescript/package.json +++ b/twitter-openapi-typescript/package.json @@ -1,6 +1,6 @@ { "name": "twitter-openapi-typescript", - "version": "0.0.11", + "version": "0.0.12", "description": "Implementation of Twitter internal API in TypeScript", "scripts": { "test": "jest", diff --git a/twitter-openapi-typescript/src/utils/api.ts b/twitter-openapi-typescript/src/utils/api.ts index 1d5ca15..3d231ee 100644 --- a/twitter-openapi-typescript/src/utils/api.ts +++ b/twitter-openapi-typescript/src/utils/api.ts @@ -7,9 +7,8 @@ export const instructionToEntry = (item: i.InstructionUnion[]): i.TimelineAddEnt return (e as i.TimelineAddEntries).entries; } else if (e.type == i.InstructionType.TimelineReplaceEntry) { return [(e as i.TimelineReplaceEntry).entry]; - } else { - return null; } + return []; }); };