Skip to main content

@sabinmarcu/utils-repo

Index

Type Aliases

AsyncifyArray

AsyncifyArray<Input>: { [ Key in keyof Input ]: Input[Key] extends (...arguments_: any) => any ? Asyncify<Input[Key]> : Input[Key] }

Type parameters

  • Input: any[]

AsyncifyParameters

AsyncifyParameters<FunctionType, FunctionTypeArguments>: FunctionTypeArguments extends any[] ? FunctionTypeArguments : []

Type parameters

  • FunctionType: (...arguments_: any[]) => any
  • FunctionTypeArguments = AsyncifyArray<Parameters<FunctionType>>

PathPredicateFunction

PathPredicateFunction: PathPredicate[sync]

PathPredicateFunctionAsync

PathPredicateFunctionAsync: PathPredicate[async]

PathResolverFunction

PathResolverFunction<T>: PathResolver<T>[sync]

Type parameters

  • T = string

PathResolverFunctionAsync

PathResolverFunctionAsync<T>: PathResolver<T>[async]

Type parameters

  • T = string

PathWalkerFunction

PathWalkerFunction<T>: PathWalker<T>[sync]

Type parameters

  • T = string

PathWalkerFunctionAsync

PathWalkerFunctionAsync<T>: PathWalker<T>[async]

Type parameters

  • T = string

Variables

constfsRoot

fsRoot: string = ...

constgetAliases

getAliases: { map: { async: PathResolverFunctionAsync<Record<string, string>>; sync: PathResolverFunction<Record<string, string>> }; names: { async: any; sync: any } } = ...

Type declaration

constgetAliasesMap

getAliasesMap: { async: PathResolverFunctionAsync<Record<string, string>>; sync: PathResolverFunction<Record<string, string>> } = ...

Type declaration

constgetAliasesNames

getAliasesNames: { async: any; sync: any } = ...

Type declaration

  • async: any
  • sync: any

constgetWorkspaces

getWorkspaces: { map: { async: PathResolverFunctionAsync<Record<string, string>>; sync: PathResolverFunction<Record<string, string>> }; names: { async: PathResolverFunctionAsync<string[]>; sync: PathResolverFunction<string[]> }; paths: { async: PathResolverFunctionAsync<string[]>; sync: PathResolverFunction<string[]> } } = ...

Type declaration

constgetWorkspacesMap

getWorkspacesMap: { async: PathResolverFunctionAsync<Record<string, string>>; sync: PathResolverFunction<Record<string, string>> } = ...

Type declaration

constgetWorkspacesNames

getWorkspacesNames: { async: PathResolverFunctionAsync<string[]>; sync: PathResolverFunction<string[]> } = ...

Type declaration

constgetWorkspacesPaths

getWorkspacesPaths: { async: PathResolverFunctionAsync<string[]>; sync: PathResolverFunction<string[]> } = ...

Type declaration

constresolveGit

resolveGit: { async: PathResolverFunctionAsync; sync: PathResolverFunction } = ...

constresolveManifest

resolveManifest: { async: PathResolverFunctionAsync; sync: PathResolverFunction } = ...

constresolveRoot

resolveRoot: any = resolveRootViaWorkspaces.async

constresolveRootSync

resolveRootSync: any = resolveRootViaWorkspaces.sync

constresolveRootViaGit

resolveRootViaGit: { async: PathResolverFunctionAsync; sync: PathResolverFunction } = ...

constresolveRootViaPackageJson

resolveRootViaPackageJson: { async: PathResolverFunctionAsync; sync: PathResolverFunction } = ...

constresolveRootViaWorkspaces

resolveRootViaWorkspaces: { async: any; sync: any } = ...

Type declaration

  • async: any
  • sync: any

constresolveWorkspaces

resolveWorkspaces: { async: PathResolverFunctionAsync<undefined | string[] | WorkspaceConfig>; sync: PathResolverFunction<undefined | string[] | WorkspaceConfig> } = ...

Type declaration

constrootResolver

rootResolver: { viaGit: { async: PathResolverFunctionAsync; sync: PathResolverFunction }; viaPackageJson: { async: PathResolverFunctionAsync; sync: PathResolverFunction }; viaWorkspaces: { async: any; sync: any } } = ...

Type declaration

consttestGit

testGit: { async: (...arguments_: [path: string]) => Promise<boolean>; sync: (path: string) => boolean } = ...

Resolver set for git roots


Type declaration

  • async: (...arguments_: [path: string]) => Promise<boolean>
      • (...arguments_: [path: string]): Promise<boolean>
      • Parameters

        • rest...arguments_: [path: string]

        Returns Promise<boolean>

  • sync: (path: string) => boolean
      • (path: string): boolean
      • Parameters

        • path: string

        Returns boolean

consttestNode

testNode: { async: (...arguments_: [path: string]) => Promise<boolean>; sync: (path: string) => boolean } = ...

Resolver set for git roots


Type declaration

  • async: (...arguments_: [path: string]) => Promise<boolean>
      • (...arguments_: [path: string]): Promise<boolean>
      • Parameters

        • rest...arguments_: [path: string]

        Returns Promise<boolean>

  • sync: (path: string) => boolean
      • (path: string): boolean
      • Parameters

        • path: string

        Returns boolean

consttestWorkspaces

testWorkspaces: { async: (...arguments_: [path: string]) => Promise<boolean>; sync: (path: string) => boolean } = ...

Resolver set for git roots


Type declaration

  • async: (...arguments_: [path: string]) => Promise<boolean>
      • (...arguments_: [path: string]): Promise<boolean>
      • Parameters

        • rest...arguments_: [path: string]

        Returns Promise<boolean>

  • sync: (path: string) => boolean
      • (path: string): boolean
      • Parameters

        • path: string

        Returns boolean

constwalkFs

walkFs: { async: <T>(pathToCheck: string, predicate: (...arguments_: [path: string]) => Promise<boolean>, process?: PathWalkerProcessFunction<T>) => Promise<string | T>; sync: <T>(pathToCheck: string, predicate: (path: string) => boolean, process?: PathWalkerProcessFunction<T>) => string | T } = ...

Type declaration

  • async: <T>(pathToCheck: string, predicate: (...arguments_: [path: string]) => Promise<boolean>, process?: PathWalkerProcessFunction<T>) => Promise<string | T>
      • <T>(pathToCheck: string, predicate: (...arguments_: [path: string]) => Promise<boolean>, process?: PathWalkerProcessFunction<T>): Promise<string | T>
      • Type parameters

        • T = string

        Parameters

        • pathToCheck: string
        • predicate: (...arguments_: [path: string]) => Promise<boolean>
          • optionalprocess: PathWalkerProcessFunction<T>

          Returns Promise<string | T>

    • sync: <T>(pathToCheck: string, predicate: (path: string) => boolean, process?: PathWalkerProcessFunction<T>) => string | T
        • Type parameters

          • T = string

          Parameters

          Returns string | T