View on GitHub

tab-info-extension

Home > tab-info > assertIsTabWithId

assertIsTabWithId() function

Assert for the presence of a browser tab’s numeric id property

Signature:

export declare function assertIsTabWithId(tab: chrome.tabs.Tab): asserts tab is TabWithId;

Parameters

Parameter Type Description
tab chrome.tabs.Tab a browser tab to test

Returns:

asserts tab is TabWithId