Type Alias Resource<TPath>

Resource<TPath>: {
    params: ExtractParams<TPath> extends never
        ? Record<string, never>
        : PathParams<TPath>;
    path: TPath;
}

Represents a resource with a given path and parameters.

Type Parameters

  • TPath extends string

Type declaration