PHP 8.2.30
Preview: setToString.d.ts Size: 1.16 KB
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/styled-components/dist/utils/setToString.d.ts

/**
 * If the Object prototype is frozen, the "toString" property is non-writable. This means that any objects which inherit this property
 * cannot have the property changed using a "=" assignment operator. If using strict mode, attempting that will cause an error. If not using
 * strict mode, attempting that will be silently ignored.
 *
 * If the Object prototype is frozen, inherited non-writable properties can still be shadowed using one of two mechanisms:
 *
 *  1. ES6 class methods: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#methods
 *  2. Using the `Object.defineProperty()` static method:
 *     https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty
 *
 * However, this project uses Babel to transpile ES6 classes, and transforms ES6 class methods to use the assignment operator instead:
 * https://babeljs.io/docs/babel-plugin-transform-class-properties#options
 *
 * Therefore, the most compatible way to shadow the prototype's "toString" property is to define a new "toString" property on this object.
 */
export declare function setToString(object: object, toStringFn: () => string): void;

Directory Contents

Dirs: 0 × Files: 29

Name Size Perms Modified Actions
75 B lrw-r--r-- 2026-02-28 11:42:46
Edit Download
108 B lrw-r--r-- 2026-02-28 11:42:46
Edit Download
158 B lrw-r--r-- 2026-02-28 11:42:50
Edit Download
246 B lrw-r--r-- 2026-02-28 11:42:50
Edit Download
3.20 KB lrw-r--r-- 2026-02-28 11:42:50
Edit Download
140 B lrw-r--r-- 2026-02-28 11:42:50
Edit Download
237 B lrw-r--r-- 2026-02-28 11:42:52
Edit Download
369 B lrw-r--r-- 2026-02-28 11:42:52
Edit Download
152 B lrw-r--r-- 2026-02-28 11:42:52
Edit Download
453 B lrw-r--r-- 2026-02-28 11:42:54
Edit Download
70 B lrw-r--r-- 2026-02-28 11:42:56
Edit Download
66 B lrw-r--r-- 2026-02-28 11:42:56
Edit Download
121 B lrw-r--r-- 2026-02-28 11:42:56
Edit Download
118 B lrw-r--r-- 2026-02-28 11:42:56
Edit Download
146 B lrw-r--r-- 2026-02-28 11:42:56
Edit Download
1.66 KB lrw-r--r-- 2026-02-28 11:42:56
Edit Download
452 B lrw-r--r-- 2026-02-28 11:42:56
Edit Download
192 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
65 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
70 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
74 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
129 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
137 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
119 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
260 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
354 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
51 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
1.16 KB lrw-r--r-- 2026-02-28 11:43:02
Edit Download
381 B lrw-r--r-- 2026-02-28 11:43:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).