chore: use descriptive type parameter names (#9937)

* chore: use descriptive type parameter names

* refactor: requested changes

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2023-11-12 17:21:51 +00:00
committed by GitHub
parent 4ff3ea4a1b
commit 975d5f18ae
34 changed files with 1104 additions and 895 deletions

View File

@@ -85,8 +85,8 @@ export interface IntrinsicProps {
shardId: number;
}
export interface WithIntrinsicProps<T> extends IntrinsicProps {
data: T;
export interface WithIntrinsicProps<Data> extends IntrinsicProps {
data: Data;
}
export interface MappedEvents {
@@ -332,7 +332,7 @@ export class Client extends AsyncEventEmitter<ManagerShardEventsMap> {
});
}
private wrapIntrinsicProps<T>(obj: T, shardId: number): WithIntrinsicProps<T> {
private wrapIntrinsicProps<ObjectType>(obj: ObjectType, shardId: number): WithIntrinsicProps<ObjectType> {
return {
api: this.api,
shardId,