Skip to main content

Function: checkSourceBudget()

checkSourceBudget(files, limits?): ProjectSourceSize

Refuse a project over its source budgets before anything parses it: the sources a person writes (default 1 MiB) and, separately, the generated files under .fluidgrids/ (default 16 MiB), so a large workspace registry does not use up the budget of the code itself.

Parameters​

files​

ReadonlyMap<string, string>

limits?​

maxGeneratedBytes?​

number

maxSourceBytes?​

number

Returns​

ProjectSourceSize