Files
formipay/node_modules/jest-dev-server/dist/index.d.ts
dwindown e8fbfb14c1 fix: prevent asset conflicts between React and Grid.js versions
Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 17:02:14 +07:00

71 lines
2.0 KiB
TypeScript

import { SpawndOptions, SpawndChildProcess } from 'spawnd';
import { WaitOnOptions } from 'wait-on';
type Config = {
/**
* Command to execute to start the port.
* Directly passed to [`spawnd`](https://www.npmjs.com/package/spawnd).
* @example "npm run start"
* @example "yarn start"
* @example "node server.js"
* @see https://www.npmjs.com/package/spawnd#command
*/
command: string;
/**
* Enable debug mode.
* @default false
*/
debug?: boolean;
/**
* Spawnd options.
* @see https://www.npmjs.com/package/spawnd#options
*/
options?: SpawndOptions;
/**
* Timeout to wait for the server to start.
* @default 5000
*/
launchTimeout?: number;
/**
* Host to use to check if the port is used.
*/
host?: string;
/**
* Port to use to check if the port is used.
*/
port?: number;
/**
* Path to use to check if the port is used.
*/
path?: string;
/**
* Protocol to use to check if the port is used.
* @default "tcp"
*/
protocol?: "tcp" | "http" | "https" | "socket";
/**
* Action to take if the port is already used.
* @default "ask"
*/
usedPortAction?: "ask" | "error" | "ignore" | "kill";
/**
* Options to pass to [`wait-on`](https://www.npmjs.com/package/wait-on).
* @see https://www.npmjs.com/package/wait-on#options
*/
waitOnScheme?: WaitOnOptions;
};
declare const ERROR_TIMEOUT = "ERROR_TIMEOUT";
declare const ERROR_PORT_USED = "ERROR_PORT_USED";
declare const ERROR_NO_COMMAND = "ERROR_NO_COMMAND";
declare class JestDevServerError extends Error {
code?: string;
constructor(message: string, options?: {
code?: string;
cause?: Error;
});
}
declare function setup(providedConfigs: Config | Config[]): Promise<SpawndChildProcess[]>;
declare function teardown(procs: SpawndChildProcess[]): Promise<void>;
export { type Config, ERROR_NO_COMMAND, ERROR_PORT_USED, ERROR_TIMEOUT, JestDevServerError, setup, teardown };