Skip to content
SegmentStream/ Docs

Loading documentation…

↑ ↓ to navigate  ↵ to open  Esc to close
Website Console
Section menu
SDKsApp SDKTypeScript

@segmentstream/app/next

7 public exports from @segmentstream/app/next.

Public exports

BareLinkImport

A place in the app's source that takes Next.js's `Link` itself.

interface BareLinkImport {
    readonly file: string;
    readonly line: number;
    readonly statement: string;
}
PendingLinksBuildError
class PendingLinksBuildError extends Error {
    readonly code: string;
    readonly imports: readonly BareLinkImport[];
    readonly name = "PendingLinksBuildError";
    constructor(code: string, message: string, imports?: readonly BareLinkImport[]);
}
PendingLinksOptions
interface PendingLinksOptions {
    readonly ignore?: readonly string[];
}
findBareLinkImports

Reads the app's own source, never dependencies, build output or hidden directories, and returns every place that takes Next.js's `Link` itself instead of a link that shows it was pressed.

function findBareLinkImports(options: {
    readonly projectDir: string;
    readonly distDir?: string;
    readonly ignore?: readonly string[];
}): Promise<BareLinkImport[]>;