MCPcopy
hub / github.com/graphql/graphiql / opt

Function opt

packages/graphql-language-service/src/parser/RuleHelpers.ts:15–17  ·  view source on GitHub ↗
(ofRule: Rule | string)

Source from the content-addressed store, hash-verified

13
14// An optional rule.
15export function opt(ofRule: Rule | string): Rule {
16 return { ofRule };
17}
18
19// A list of another rule.
20export function list(ofRule: Rule | string, separator?: string | Rule): Rule {

Callers 3

mode.tsFile · 0.90
Rules.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected