Something went wrong. Try again.
[mirror] A local-first desktop markdown writer with grammar checking, at proto integration, and more github.com/stormlightlabs/writer/releases
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839import { PatternCategory, StyleCheckPattern, StyleMarkerStyle } from "$types";
export type PosLegendItem = { label: string; className: string; color: string; swatchClassName: string; tags: readonly string[];};
export type PosToken = { out: (itsf?: unknown) => unknown };
export type PosDocument = { tokens: () => { each: (cb: (token: PosToken) => void) => void } };
export type PosNlp = { its: { pos: unknown; precedingSpaces: unknown; value: unknown }; readDoc: (text: string) => PosDocument;};
export type StyleCategory = PatternCategory;
export type StyleMatch = { from: number; to: number; text: string; category: StyleCategory; replacement?: string; line: number; column: number;};
export type StyleCheckConfig = { enabled: boolean; categories: { filler: boolean; redundancy: boolean; cliche: boolean }; customPatterns: StyleCheckPattern[]; markerStyle: StyleMarkerStyle; onMatchesChange?: (matches: StyleMatch[]) => void;};