- Preparing search index...
- The search index is not available
@onehop/js
Function validateIdPrefix
- validateIdPrefix<T>(prefix: string, expect?: T): prefix is T
-
Type Parameters
-
T extends "user" | "project" | "pm" | "role" | "pi" | "ptk" | "pat" | "container" | "pipe_room" | "deployment" | "bearer" | "ptkid" | "secret" | "gateway" | "domain" | "leap_token" | "build" | "rollout" | "health_check" | "session" = "user" | "project" | "pm" | "role" | "pi" | "ptk" | "pat" | "container" | "pipe_room" | "deployment" | "bearer" | "ptkid" | "secret" | "gateway" | "domain" | "leap_token" | "build" | "rollout" | "health_check" | "session"
Parameters
-
prefix: string
-
Optional
expect: T
Returns prefix is T