ts-fortress
    Preparing search index...

    Function strictRecord

    • Creates a strict record type that rejects excess properties. This is an alias for record(shape, { excessProperty: 'reject' }).

      Type Parameters

      • const S extends UnknownShape

      Parameters

      • shape: S
      • Optionaloptions: Partial<Readonly<{ typeName: string }>>

      Returns Type<RecordTypeFromShape<S>>