UNPKG

@fedify/fedify

Version:

An ActivityPub server framework

15 lines 594 B
import { type LanguageTag } from "@phensley/language-tag"; /** * A language-tagged string which corresponds to the `rdf:langString` type. */ export declare class LanguageString extends String { readonly language: LanguageTag; /** * Constructs a new `LanguageString`. * @param value A string value written in the given language. * @param language The language of the string. If a string is given, it will * be parsed as a `LanguageTag`. */ constructor(value: string, language: LanguageTag | string); } //# sourceMappingURL=langstr.d.ts.map