mirror of
https://github.com/sern-handler/handler
synced 2026-07-05 05:59:37 +00:00
freeze module after plugins, updateModule, and more
This commit is contained in:
@@ -14,8 +14,8 @@ import { PayloadType, PluginType } from './structures/enums';
|
||||
import assert from 'assert';
|
||||
import type { Payload } from '../types/utility';
|
||||
|
||||
export const ok = (val: unknown) => Ok(val);
|
||||
export const err = (val: string) => Err(val);
|
||||
export const ok = (val: unknown=undefined) => Ok(val);
|
||||
export const err = (val?: string) => Err(val);
|
||||
|
||||
export function partitionPlugins<T,V>
|
||||
(arr: Array<{ type: PluginType }> = []): [T[], V[]] {
|
||||
|
||||
Reference in New Issue
Block a user