iya-sts
    Preparing search index...
    staticTypeOf: (expression: any, scope: any, problems: any) => any = staticTypeOf

    Type Declaration

      • (expression: any, scope: any, problems: any): any
      • Derives the static type of a policy expression without evaluating it, pushing any certain type error onto problems.

        A literal's lexical form is checked against its declared datatype here. Where the type cannot be known the answer is null rather than a guess.

        Parameters

        • expression: any

          a model expression node

        • scope: any

          the variable definitions in scope

        • problems: any

          the list each problem found is appended to

        Returns any

        { kind, type } with kind 'primitive', 'bag' or 'function' (a null type meaning of some type it cannot name), or null when unknown