@azure/web-pubsub package
類別
| AzureKeyCredential |
支援更新基礎金鑰值的靜態金鑰型認證。 |
| WebPubSubServiceClient |
聯機到 Web PubSub 中樞的用戶端 |
介面
類型別名
| JSONTypes |
可串行化並傳送為 JSON 的類型。 |
| Permission | |
| WebPubSubClientProtocol |
要求的用戶端端點類型。 |
函式
| odata(Template |
逸出 odata 篩選表示式,以避免使用引用字串常值的錯誤。 範例用法:
|
函式詳細資料
odata(TemplateStringsArray, unknown[])
逸出 odata 篩選表示式,以避免使用引用字串常值的錯誤。 範例用法:
import { odata } from "@azure/web-pubsub";
const userId = "vic's";
const anonymous = null;
const length = 3;
const filter = odata`userId eq ${anonymous} or userId eq ${userId} or length(userId) > ${length}`;
function odata(strings: TemplateStringsArray, values: unknown[]): string
參數
- strings
-
TemplateStringsArray
表達式的字串數位
- values
-
unknown[]
表達式的值陣列
傳回
string