Skip to main content
Module

x/ts_morph/ts_morph.d.ts>Directory#getSourceFiles

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Directory.prototype.getSourceFiles
import { Directory } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Gets the source files within this directory.

Gets all the source files added to the project relative to the directory that match a pattern.

Parameters

globPattern: string
  • Glob pattern for filtering out the source files.

Gets all the source files added to the project relative to the directory that match the provided patterns.

Parameters

globPatterns: ReadonlyArray<string>
  • Glob patterns for filtering out the source files.