Module:Assert: Revision history

From IdleOn MMO Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 May 2024

17 March 2024

  • curprev 23:2023:20, 17 March 2024Nads talk contribs 6,227 bytes +6,227 Created page with "require('strict') local Assert = {} --- Formats a message with optional arguments. --- @param message string The message to format. --- @param ... any The format arguments. --- @return string local function formatMessage(message, ...) local args = { ... } if #args > 0 then return message:format(...) else return message end end --- Asserts that `value`'s type matches one of the types in `expected`. --- @generic T --- @param value T The v..."