MCPcopy Create free account

hub / github.com/scalar/scalar / functions

Functions4,087 in github.com/scalar/scalar

↓ 3 callersFunctiontrackCycle
( value: unknown, schema: Schema, result: unknown, cache: WeakMap<object, Map<Schema, unknown>>, )
packages/validation/src/coerce.ts:167
↓ 3 callersFunctiontransformParameterObject
( parameter: OpenAPIV2.ParameterObject | OpenAPIV2.ReferenceObject, )
packages/openapi-upgrader/src/2.0-to-3.0/upgrade-from-two-to-three.ts:691
↓ 3 callersFunctiontriggerIntersection
Call to simulate the observed element entering the viewport so requestLazyRender runs.
packages/api-reference/src/components/Lazy/Lazy.test.ts:39
↓ 3 callersFunctiontypeCommentCodeBlock
(language: string, body: string)
packages/schemas/src/extensions/type-comment.ts:7
↓ 3 callersFunctiontypeCommentExample
(language: string, body: string)
packages/schemas/src/extensions/type-comment.ts:11
↓ 3 callersFunctiontypeCommentSections
(...sections: string[])
packages/schemas/src/extensions/type-comment.ts:18
↓ 3 callersFunctionuniqueKey
Returns the base key if unused, otherwise appends `-2`, `-3`, … until unique. Mutates `usedKeys`.
packages/asyncapi-upgrader/src/2.6-to-3.0/upgrade-from-two-to-three.ts:312
↓ 3 callersFunctionupdateSelectedClient
( workspace: Workspace | null, payload: WorkspaceEvents['workspace:update:selected-client'], )
packages/workspace-store/src/mutators/workspace.ts:80
↓ 3 callersFunctionupdateSelectedExample
( workspace: Workspace | null, payload: WorkspaceEvents['workspace:update:selected-example'], )
packages/workspace-store/src/mutators/workspace.ts:96
↓ 3 callersFunctionupdateTabs
(workspace: Workspace | null, payload: TabEvents['tabs:update:tabs'])
packages/workspace-store/src/mutators/tabs.ts:43
↓ 3 callersFunctionuploadTempDocument
( document: string, urls: Pick<ExternalUrls, 'proxyUrl' | 'apiBaseUrl'>, )
packages/api-reference/src/helpers/upload-temp-document.ts:10
↓ 3 callersFunctionuseResizeWithTarget
( target: MaybeRefOrGetter<Element | undefined>, opts: ResizeOptions = { enabled: ref(true) }, )
packages/components/src/components/ScalarFloating/useResizeWithTarget.ts:10
↓ 3 callersFunctionuseSidebarNestedItem
( /** The getter for the open state of the current nested items */ open: SidebarNestedItemOpenGetter, )
packages/components/src/components/ScalarSidebar/useSidebarNestedItems.ts:13
↓ 3 callersFunctionvalidation
(value: string)
packages/postman-to-openapi/src/helpers/generate-unique-value.test.ts:13
↓ 3 callersFunctionwasChangelogVersioned
(changelogPath: string, changedPaths: ReadonlySet<string>)
packages/release-notes/src/core/detect-versioned-changelog-paths.ts:23
↓ 3 callersFunctionwithArrayBracket
(name: string, mode: ExpansionMode, isArray: boolean)
packages/api-client/src/v2/blocks/request-block/helpers/create-parameter-rows.ts:128
↓ 3 callersFunctionwriteIfChanged
(filePath: string, content: string, repoRoot: string)
packages/schemas/scripts/generate-types.ts:105
↓ 2 callersFunctionadd
(node: SchemaObject | undefined)
packages/workspace-store/src/helpers/dynamic-ref.ts:64
↓ 2 callersFunctionaddClasses
(el?: HTMLElement | undefined | null)
packages/components/src/helpers/add-scalar-classes.ts:14
↓ 2 callersFunctionaddDocument
({ namespace, slug, removable = true, tmp = false, }: { namespace: string slug: stri
packages/agent-chat/src/state/state.ts:246
↓ 2 callersFunctionaddFonts
(themeStyles?: string)
projects/scalar-app/src/helpers/theme/resolve-theme-styles.ts:10
↓ 2 callersFunctionaddFrame
(frame: WebSocketFrame)
packages/api-client/src/v2/blocks/channel-operation-block/helpers/websocket-session.ts:83
↓ 2 callersFunctionaddHeadStyle
(css: string)
integrations/astro/src/client.test.ts:82
↓ 2 callersFunctionaddHeaderValue
(headers: AxiosHeaders, name: string, value: string)
packages/snippetz/src/plugins/shared/axios.ts:34
↓ 2 callersFunctionaddIntegration
()
packages/api-reference-react/src/ApiReferenceReact.tsx:19
↓ 2 callersFunctionaddLegacyScriptToMap
( target: Map<string, string>, operation: OpenAPIV3_1.OperationObject, outputKey: (typeof SCRIPT_MERGE_C
packages/postman-to-openapi/src/helpers/merge-operation.ts:252
↓ 2 callersFunctionaddScriptsToMap
(target: Map<string, string>, source: unknown)
packages/postman-to-openapi/src/helpers/merge-operation.ts:236
↓ 2 callersFunctionaddToMap
(key: string, entry: WithParent<TraversedOperation> | WithParent<TraversedWebhook>)
packages/workspace-store/src/navigation/helpers/get-operation-entries.ts:41
↓ 2 callersFunctionappendQueryValue
(params: URLSearchParams, key: string, value: unknown)
packages/workspace-store/src/channel-example/build-connection-url.ts:206
↓ 2 callersFunctionapply
( payload: | { type: 'document'; documentName: string } | { type: 'operation'; documentName: s
packages/workspace-store/src/mutators/auth.ts:452
↓ 2 callersFunctionapplyColorMode
(mode: DarkLightMode)
projects/scalar-app/src/hooks/use-color-mode.ts:40
↓ 2 callersFunctionapplyConflictChoice
(index: number, source: 'local' | 'remote')
projects/scalar-app/src/features/editor/hooks/use-three-way-merge-editor.ts:481
↓ 2 callersFunctionapplyPostmanFolderSelectionChange
( selectedKeys: readonly string[], node: PostmanTreeNode, selected: boolean, )
projects/scalar-app/src/features/command-palette/helpers/postman-request-tree.ts:196
↓ 2 callersFunctionapplyPostmanRequestSelectionChange
( selectedKeys: readonly string[], key: string, selected: boolean, )
projects/scalar-app/src/features/command-palette/helpers/postman-request-tree.ts:181
↓ 2 callersFunctionassembleWorkspace
(workspace: WorkspaceRecord)
packages/workspace-store/src/persistence/index.ts:142
↓ 2 callersFunctionassertBigIntBodyAndScreenshot
( page: Page, block: ReturnType<Page['locator']>, snapshotFileName: string, )
projects/scalar-app/test/response-body-raw-json-bigint.e2e.ts:41
↓ 2 callersFunctionassertNoNestedFunctions
(value: unknown, path: string)
packages/server-side-rendering/src/ssr.ts:306
↓ 2 callersFunctionassertScalarAppEnv
(env: unknown)
projects/scalar-app/assert-scalar-app-env.ts:42
↓ 2 callersFunctionassertSupported
(condition: boolean, message: string)
packages/pre-post-request-scripts/src/libs/execute-scripts/postman-adapter/request-factory-adapter.ts:4
↓ 2 callersFunctionassignTagsFromPostman
( openapi: OpenAPIV3_1.Document, tags: OpenAPIV3_1.TagObject[], isMergingIntoBase: boolean, )
packages/postman-to-openapi/src/convert.ts:478
↓ 2 callersFunctionauthStorage
()
packages/agent-chat/src/helpers.ts:79
↓ 2 callersFunctionauthorizationCodeUsesPkcePublicClient
( flowType: keyof NonImplicitFlows, flow: NonImplicitFlows[keyof NonImplicitFlows], )
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts:18
↓ 2 callersFunctionbasic
(credentials: string)
packages/mock-server/src/utils/handle-authentication.test.ts:7
↓ 2 callersFunctionbasicAuthEncode
(username: string, password: string)
integrations/fastify/src/fastifyApiReference.test.ts:22
↓ 2 callersFunctionbuildChangelogUrl
(options: { repo?: string baseBranch?: string changelogPath: string version: string })
packages/release-notes/src/core/run-release-notes-generator.ts:88
↓ 2 callersFunctionbuildDependencyChangelogContext
( dependencyChangelogs: readonly DependencyChangelog[] | undefined, )
packages/release-notes/src/core/generate-release-note.ts:84
↓ 2 callersFunctionbuildEntry
(exampleKey: string, body: string, status: number)
packages/api-client/src/v2/blocks/operation-block/OperationBlock.test.ts:1062
↓ 2 callersFunctionbuildNamespaceFilterOptions
( summary: RegistryNamespaceSummary, totalDocs: number, )
projects/scalar-app/src/features/app/hooks/use-sidebar-documents/helpers/registry-namespace-filter.ts:51
↓ 2 callersFunctionbuildOperation
Assembles the 3.0 Operation Object from the 2.x publish/subscribe shape.
packages/asyncapi-upgrader/src/2.6-to-3.0/upgrade-from-two-to-three.ts:276
↓ 2 callersFunctionbuildPostFields
(value: string)
packages/snippetz/src/plugins/c/libcurl/libcurl.ts:78
↓ 2 callersFunctionbuildPullRequestContext
(pullRequests: ReadonlyMap<number, PullRequestSummary> | undefined)
packages/release-notes/src/core/generate-release-note.ts:72
↓ 2 callersFunctionbuildReleaseNotesJsonSchema
(options: ReleaseNotesJsonSchemaMetadata = {})
packages/release-notes/src/writers/write-release-notes-schema.ts:19
↓ 2 callersFunctionbuildSystemPrompt
(options: { product: ProductPromptContext; prompts?: PromptOptions })
packages/release-notes/src/core/generate-release-note.ts:68
↓ 2 callersFunctionbuildTagMetadata
(contexts: TagContext[], strategy: TagNamingStrategy)
packages/postman-to-openapi/src/convert.ts:243
↓ 2 callersFunctioncheckForMethod
(identifier: Pick<Identifier, 'escapedText'> | undefined)
packages/nextjs-openapi/src/path.ts:19
↓ 2 callersFunctionclamp
(value: number, min: number, max: number)
packages/api-client/src/v2/components/resize/use-split-resize.ts:3
↓ 2 callersFunctionclampIndex
(index: number, length: number)
packages/workspace-store/src/mutators/auth.ts:627
↓ 2 callersFunctioncleanup
()
projects/scalar-app/entrypoints/electron/preload/index.ts:44
↓ 2 callersMethodcleanup
()
packages/react-renderer/src/components/ReactConnector.tsx:29
↓ 2 callersFunctionclearScrollTarget
(id: string)
packages/api-reference/src/helpers/lazy-bus.ts:43
↓ 2 callersFunctioncloseCallbackServer
(server: http.Server)
projects/scalar-app/entrypoints/electron/main/actions/get-exchange-token.ts:48
↓ 2 callersFunctioncollectAllRequestPathKeys
(nodes: PostmanTreeNode[])
projects/scalar-app/src/features/command-palette/helpers/postman-request-tree.ts:161
↓ 2 callersFunctioncollectAsyncApiChannels
(children: TraversedEntry[] | undefined)
packages/workspace-store/src/navigation/helpers/traverse-asyncapi-document.test.ts:120
↓ 2 callersFunctioncollectMessages
* Extracts each message reference from a 2.x operation's `message` field (single or `oneOf`) into * the channel-level `messages` map; returns the mes
packages/asyncapi-upgrader/src/2.6-to-3.0/upgrade-from-two-to-three.ts:223
↓ 2 callersFunctioncollectSecurityRequirements
( document: AsyncApiDocument, security: AsyncApiSecurityEntry[] | undefined, )
packages/workspace-store/src/channel-example/get-asyncapi-security-requirements.ts:75
↓ 2 callersFunctioncomponentDetailsFromContext
( component: string | undefined, story: string | undefined, testInfo: TestInfo, )
packages/components/test/helpers.ts:81
↓ 2 callersFunctioncompute
()
packages/helpers/src/types/result.test.ts:36
↓ 2 callersFunctionconcatAll
(xs /*: $ReadOnlyArray<T> */)
packages/openapi-parser/src/utils/betterAjvErrors/utils.ts:29
↓ 2 callersFunctioncontent
(contentType: 'application/json' | 'application/xml')
packages/openapi-to-markdown/src/create-markdown-from-openapi.test.ts:490
↓ 2 callersFunctioncookieMutatorsFactory
({ collection }: { collection: WorkspaceDocument | Workspace | null })
packages/workspace-store/src/mutators/cookie.ts:79
↓ 2 callersFunctioncountRequestLeaves
(node: PostmanTreeNode)
projects/scalar-app/src/features/command-palette/helpers/postman-request-tree.ts:214
↓ 2 callersFunctioncountThatFits
(reserved: number)
packages/api-reference/src/blocks/scalar-sdk-installation-instructions/helpers/visible-tab-count.ts:24
↓ 2 callersFunctioncreateAppRouter
(layout: Exclude<ClientLayout, 'modal'>)
projects/scalar-app/src/features/app/helpers/create-api-client-app.ts:15
↓ 2 callersFunctioncreateAuthorizationHeaders
({ getAccessToken, getAgentKey, }: { getAccessToken?: () => string getAgentKey?: () => string })
packages/agent-chat/src/api.ts:7
↓ 2 callersFunctioncreateAutoGeneratedHeader
()
packages/snippetz/scripts/generate-java-enums.ts:264
↓ 2 callersFunctioncreateAxiosPlugin
(target: Extract<TargetId, 'js' | 'node'>)
packages/snippetz/src/plugins/shared/axios.ts:141
↓ 2 callersFunctioncreateBuiltInProvider
(options: { provider: BuiltInProviderName model?: string apiKeyEnv?: string })
packages/release-notes/src/config/read-config.ts:74
↓ 2 callersFunctioncreateChannelEntry
({ bucket, operationEntries, generateId, parentId, parentTag, operationsSorter, document, }: {
packages/workspace-store/src/navigation/helpers/traverse-asyncapi-document.ts:345
↓ 2 callersFunctioncreateCodeMirrorTheme
({ theme, settings = {}, styles = [] }: CreateThemeOptions)
packages/use-codemirror/src/themes/createCodeMirrorTheme.ts:63
↓ 2 callersFunctioncreateContainer
(doc: Document, element?: Element | null)
packages/api-reference/src/standalone/lib/html-api.ts:216
↓ 2 callersFunctioncreateDefaultRequestFactoryPayload
(overrides: Partial<RequestFactoryPayload> = {})
packages/api-client/src/v2/blocks/operation-block/OperationBlock.test.ts:138
↓ 2 callersFunctioncreateDeferred
()
packages/workspace-store/src/plugins/bundler/index.test.ts:24
↓ 2 callersFunctioncreateDocumentName
(namespace: string, slug: string)
packages/agent-chat/src/registry/create-document-name.ts:1
↓ 2 callersFunctioncreateDocumentSettings
(workspaceStore: WorkspaceStore)
packages/agent-chat/src/helpers.ts:46
↓ 2 callersFunctioncreateEnvReplaceFn
(envVariables: Record<string, string>)
packages/workspace-store/src/request-example/builder/build-request.ts:52
↓ 2 callersFunctioncreateFakeSidebarState
(entries: TraversedEntry[])
projects/scalar-app/src/features/app/hooks/use-sidebar-context-menu.test.ts:57
↓ 2 callersFunctioncreateFuseInstance
()
packages/api-client/src/v2/features/search/helpers/create-fuse-instance.ts:10
↓ 2 callersFunctioncreateFuseInstance
()
packages/api-reference/src/features/Search/helpers/create-fuse-instance.ts:10
↓ 2 callersFunctioncreateHeader
Create a section break header
packages/code-highlight/playground/main.ts:20
↓ 2 callersFunctioncreateHtmlFromOpenApi
(input: AnyDocument, options?: OpenApiRenderOptions)
packages/openapi-to-markdown/src/create-markdown-from-openapi.ts:235
↓ 2 callersFunctioncreateLine
* Creates a new line element * * @param children - The children the line should have initially
packages/code-highlight/src/code/line-numbers.ts:94
↓ 2 callersFunctioncreateLocalizationContext
( localization: MaybeRefOrGetter<ApiReferenceLocalization | undefined>, )
packages/api-reference/src/features/localization/use-localization.ts:108
↓ 2 callersFunctioncreateMediaQueryListMock
(mode: 'light' | 'dark')
packages/use-hooks/src/useColorMode/useColorMode.test.ts:144
↓ 2 callersFunctioncreateMockWebhookGroup
(overrides: Partial<TraversedTag> = {})
packages/api-reference/src/components/Content/Operations/TraversedEntry.test.ts:179
↓ 2 callersFunctioncreateOperationEntry
({ ref, operation, method, path, generateId, parentId, parentTag, operationTitleSource, }: {
packages/workspace-store/src/navigation/helpers/traverse-paths.ts:31
↓ 2 callersFunctioncreateParentModel
()
packages/components/src/components/ScalarSidebar/useSidebarNestedItems.test.ts:16
↓ 2 callersFunctioncreatePersistedStoreSpy
()
packages/workspace-store/src/client.test.ts:73
↓ 2 callersFunctioncreateReferenceApp
(isSsr = false)
packages/api-reference/src/standalone/lib/html-api.ts:250
↓ 2 callersFunctioncreateSchemaEntry
({ ref, name, generateId, parentTag, _schema, parentId, }: { ref: string name: string genera
packages/workspace-store/src/navigation/helpers/traverse-schemas.ts:16
↓ 2 callersFunctioncreateStoreWrapper
(store: Store)
packages/mock-server/src/utils/store-wrapper.ts:30
← previousnext →1,501–1,600 of 4,087, ranked by callers