Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

180 B
Raw Blame
export function ensureString(value: unknown): string {
  if (typeof value !== 'string') {
    throw new TypeError(`Expected a string, got ${typeof value}`);
  }

  return value;
}