mirror of
https://github.com/Kong/insomnia.git
synced 2026-08-03 19:32:31 -04:00
add utility function
This commit is contained in:
@@ -122,6 +122,7 @@ export const canSync = false;
|
||||
|
||||
export const isCloudCredential = (model: Pick<BaseModel, 'type'>): model is CloudProviderCredential =>
|
||||
model.type === type;
|
||||
export const isCloudCredentialId = (id: string): boolean => id.startsWith(`${prefix}_`);
|
||||
|
||||
export function init(): Partial<CloudProviderCredential> {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user