c7f3bae738
* Make private properties in Surrounder truly private * Fix remove logic of Surrounder * No reason for toggleTriggerRemove to be async * Allow using alt-shift to set all remove formats but this one * modifyFormat => updateFormat * Fix formatting
19 lines
391 B
TypeScript
19 lines
391 B
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
export function noop(): void {
|
|
/* noop */
|
|
}
|
|
|
|
export async function asyncNoop(): Promise<void> {
|
|
/* noop */
|
|
}
|
|
|
|
export function id<T>(t: T): T {
|
|
return t;
|
|
}
|
|
|
|
export function truthy<T>(t: T | void | undefined | null): t is T {
|
|
return Boolean(t);
|
|
}
|