Setu-TS
    Preparing search index...

    Type Alias PolicyClassAbility<C>

    PolicyClassAbility: {
        [K in keyof InstanceType<C>]: InstanceType<C>[K] extends (
            ...args: never[],
        ) => unknown
            ? K
            : never
    }[keyof InstanceType<C>] & string

    The method names of a policy class — the abilities @RequirePolicy may name.

    The type cannot tell an @Ability method from an ordinary one, so naming an ordinary method compiles and is refused at register().

    Type Parameters

    0.9.0