react-sqlite-hook
Version:
React Hook for @Capacitor-community/sqlite plugin
17 lines (13 loc) • 379 B
text/typescript
export interface AvailableResult {
isAvailable: boolean;
}
export const notAvailable = {
isAvailable: false
}
export class FeatureNotAvailableError extends Error {
constructor() {
super();
this.message = 'Feature not available on this platform/device. Check availability before attempting to call this method';
this.name = 'FeatureNotAvailableError';
}
}