pl-api: remove old as any
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -33,7 +33,7 @@ const streaming = (client: PlApiBaseClient) => ({
|
||||
{ access_token: client.accessToken },
|
||||
);
|
||||
|
||||
const ws = new WebSocket(path, client.accessToken as any);
|
||||
const ws = new WebSocket(path, client.accessToken);
|
||||
|
||||
let listeners: Array<{ listener: (event: StreamingEvent) => any; stream?: string }> = [];
|
||||
const queue: Array<() => any> = [];
|
||||
|
||||
@ -34,7 +34,7 @@ const driveFolderSchema: v.BaseSchema<any, DriveFolder, v.BaseIssue<unknown>> =
|
||||
...baseDriveFolderSchema.entries,
|
||||
folders: filteredArray(v.lazy(() => driveFolderSchema)),
|
||||
}),
|
||||
) as any;
|
||||
);
|
||||
|
||||
/**
|
||||
* @category Entity types
|
||||
|
||||
@ -134,7 +134,7 @@ const notificationGroupSchema: v.BaseSchema<any, NotificationGroup, v.BaseIssue<
|
||||
chatMentionNotificationGroupSchema,
|
||||
eventParticipationRequestNotificationGroupSchema,
|
||||
]),
|
||||
) as any;
|
||||
);
|
||||
|
||||
/**
|
||||
* @category Entity types
|
||||
|
||||
@ -129,7 +129,7 @@ const notificationSchema: v.BaseSchema<any, Notification, v.BaseIssue<unknown>>
|
||||
eventParticipationRequestNotificationSchema,
|
||||
biteNotificationSchema,
|
||||
]),
|
||||
) as any;
|
||||
);
|
||||
|
||||
/**
|
||||
* @category Entity types
|
||||
|
||||
@ -221,7 +221,7 @@ const statusSchema: v.BaseSchema<any, Status, v.BaseIssue<unknown>> = v.pipe(
|
||||
|
||||
quote: v.fallback(v.nullable(v.lazy(() => v.union([quoteSchema, shallowQuoteSchema]))), null),
|
||||
}),
|
||||
) as any;
|
||||
);
|
||||
|
||||
/**
|
||||
* @category Schemas
|
||||
|
||||
Reference in New Issue
Block a user