mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-19 07:35:36 +07:00
init 2
This commit is contained in:
23
source/log/Log.ts
Normal file
23
source/log/Log.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import CircularBuffer from '../utils/CircularBuffer'
|
||||
import LogEntry from './LogEntry'
|
||||
|
||||
export default class Log extends CircularBuffer<LogEntry> {
|
||||
public constructor(capacity: number) {
|
||||
super(capacity)
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new Log object from the given string.
|
||||
*
|
||||
* @param enc - the encoded log
|
||||
* @returns a log object
|
||||
*/
|
||||
// public static from(enc: string) : Log {}
|
||||
|
||||
/**
|
||||
* Returns this log as string.
|
||||
*
|
||||
* @returns the log as string
|
||||
*/
|
||||
// public toString() : string {}
|
||||
}
|
||||
Reference in New Issue
Block a user