1.0.3 • Published 4 years ago

queue-decorator v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Queue Decorator

Install

npm i queue-decorator

Usage

@Queue<ClassWhereQueueIsUsed, InputEntityType, ReturnEntityType>(
		(a: InputEntityType, b: InputEntityType) => a.id === b.id,
	)
	async someAsyncMethod(entity: InputEntityType): Promise<ReturnEntityType> {
        // stuff
    }

Queue decorator takes a function as predicate to check condition to Queue entities.

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago