variable / @typed/router/AST

wildcard

Constructs a terminal wildcard Path AST node.

Package version
1.0.0-beta.7
Category
Path syntax
Since
1.0.0

Import

import { wildcard } from "@typed/router/AST";

Signatures

export declare const wildcard: () => PathAst.Wildcard;

Why

Catch-all syntax remains explicit and orderable among other route cases.

Ownership and lifetime

wildcard returns a fresh plain AST node immediately and retains any supplied child nodes or arrays by reference; it acquires no external resource.

Source