Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "project/util/projectInvariants"

Index

Functions

assertContent

  • assertContent(p: Project, path: string, assertion: function, err?: string): Promise<Project>
  • Pass through validating something. Used to assert invariants in editors. Reject if invariant isn't satisfied.

    Parameters

    • p: Project
    • path: string
    • assertion: function

      to satisfy invariant

        • (content: string): boolean
        • Parameters

          • content: string

          Returns boolean

    • Optional err: string

      custom error message, if supplied

    Returns Promise<Project>

assertContentIncludes

  • assertContentIncludes(p: Project, path: string, what: string): Promise<Project>

assertFileExists

Generated using TypeDoc