n8n/packages/workflow/src/native-methods/boolean.methods.ts
कारतोफ्फेलस्क्रिप्ट™ 3a2a70f193
chore: Enfore consistent file-name casing on all backend packages (#15755)
2025-05-27 16:45:50 +02:00

22 lines
633 B
TypeScript

import type { NativeDoc } from '../extensions/extensions';
export const booleanMethods: NativeDoc = {
typeName: 'Boolean',
functions: {
toString: {
doc: {
name: 'toString',
description:
"Converts <code>true</code> to the string <code>'true'</code> and <code>false</code> to the string <code>'false'</code>.",
examples: [
{ example: 'true.toString()', evaluated: "'true'" },
{ example: 'false.toString()', evaluated: "'false'" },
],
docURL:
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toString',
returnType: 'string',
},
},
},
};