Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pbkit/core/parser/misc.ts>expectSpecialToken

Protobuf toolkit for modern web development
Go to Latest
function expectSpecialToken
import { expectSpecialToken } from "https://deno.land/x/pbkit@v0.0.67/core/parser/misc.ts";

Type Parameters

TType extends string

Parameters

type: TType
optional
pattern: Pattern = [UNSUPPORTED]

Returns

Token & { type: TType; }