@thaunknown/web-irc
Version:
A TypeScript port of irc-framework's WebIRC client, without the bloat of unnceessary packages.
24 lines (23 loc) • 947 B
TypeScript
declare class SubstringTooLargeForLineError extends Error {
constructor(substring: any, opts: any);
get name(): string;
}
declare class WordTooLargeForLineError extends SubstringTooLargeForLineError {
get message(): string;
}
declare class GraphemeTooLargeForLineError extends SubstringTooLargeForLineError {
get message(): string;
}
declare class CodepointTooLargeForLineError extends SubstringTooLargeForLineError {
get message(): string;
}
declare function lineBreak(str: any, opts: any): Generator<string, void, unknown>;
declare function wordBreak(str: any): Generator<string[], void, unknown>;
declare const _default: {
WordTooLargeForLineError: typeof WordTooLargeForLineError;
GraphemeTooLargeForLineError: typeof GraphemeTooLargeForLineError;
CodepointTooLargeForLineError: typeof CodepointTooLargeForLineError;
lineBreak: typeof lineBreak;
wordBreak: typeof wordBreak;
};
export default _default;