Skip to content

Instantly share code, notes, and snippets.

@hoangsetup
Created March 26, 2022 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoangsetup/33bcce2f775bf9253526db4169b93bba to your computer and use it in GitHub Desktop.
Save hoangsetup/33bcce2f775bf9253526db4169b93bba to your computer and use it in GitHub Desktop.
export interface ILink {
title: string;
link: string;
}
export interface ISearchResult {
query: string;
took: number;
links: ILink[];
}
export interface IQueueItem {
query: string;
transactionId: number;
}
export interface ITransaction {
status: 'ON_QUEUE' | 'PROCESSING' | 'DONE';
data?: ISearchResult;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment