Stone.js API
    Preparing search index...

    Function stripNonDeclarations

    • Remove the parts of a source file where a decorator name is only ever mentioned.

      Template literals, block comments and line comments all carry decorator names in perfectly normal code: a page that documents Stone.js renders @StoneApp inside a fenced sample, and a JSDoc block refers to @Configuration in prose. Scanning raw text flags all of them. This repository's own documentation site is the proof: 51 of its .tsx files mention one of these names, and none of them declares one.

      Parameters

      • content: string

        The file's source.

      Returns string

      The source with mentions blanked out, line structure preserved.