Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fathym_common/src/common/path/FileListRequest.ts>FileListRequest

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
type alias FileListRequest
import { type FileListRequest } from "https://deno.land/x/fathym_common@v0.2.147-integration/src/common/path/FileListRequest.ts";

Represents a request for files in a directory based on the given extensions.

Examples

From direct import - All Files

import { FileListRequest } from '@fathym/common/path';

const fileListRequest: FileListRequest = {
   Directory: '/path/to/directory',
}

From common import - TS and TSX files

import { FileListRequest } from '@fathym/common';

const fileListRequest: FileListRequest = {
   Directory: '/path/to/directory',
   Extensions: ['ts', '.tsx'],
}
definition: { Directory: string; Extensions?: string[]; }