mirror of
https://github.com/seejohnrun/haste-server.git
synced 2025-12-13 20:45:55 +00:00
14 lines
264 B
TypeScript
14 lines
264 B
TypeScript
import type { KeyGeneratorConfig } from 'src/types/config'
|
|
|
|
abstract class KeyGenerator {
|
|
type: string
|
|
|
|
constructor(options: KeyGeneratorConfig) {
|
|
this.type = options.type
|
|
}
|
|
|
|
abstract createKey(keyLength: number): string
|
|
}
|
|
|
|
export default KeyGenerator
|