Libraries
    Preparing search index...

    Function createCacheTagTree

    • Builds a synthetic object({ params, body, query, headers }) schema from the endpoint's schema definitions and returns its PropertyDescriptorTree so callers can write type-safe selectors like:

      endpoint.cacheTag('todo', p => ({
      id: p.query.id,
      fromBodyId: p.body.id
      }))

      Only non-null schemas are included in the synthetic schema.

      Parameters

      • schemas: {
            bodySchema?: SchemaBuilder<any, any, any, any, any> | null;
            headerSchema?:
                | ObjectSchemaBuilder<any, any, any, any, any, any, any>
                | null;
            paramsSchema?: SchemaBuilder<any, any, any, any, any> | null;
            querySchema?: ObjectSchemaBuilder<any, any, any, any, any, any, any> | null;
        }

      Returns any