@stacksjs/ts-validation
Version:
A simple TypeScript starter kit using Bun.
9 lines • 415 B
TypeScript
import type { IsISBNOptions } from '../types';
/**
* Check if the string is a valid ISBN (International Standard Book Number)
*
* @param isbn - The string to check
* @param options - Options object that specifies ISBN version to validate against
* @returns True if the string is a valid ISBN, false otherwise
*/
export declare function isISBN(isbn: string, options?: IsISBNOptions | string | number): boolean;