Skip to content

Commit

Permalink
docs(core): add missing return type for workspace builders docs (#9040)
Browse files Browse the repository at this point in the history
  • Loading branch information
naorpeled committed Mar 14, 2022
1 parent dbbd7ef commit 7af7157
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/shared/tools-workspace-builders.md
Expand Up @@ -51,7 +51,7 @@ In our `impl.ts` file, we're creating an `Options` interface that matches the js
The `impl.ts` contains the actual code for your executor. Your executor's implementation must export a function that takes an options object and returns a `Promise<{ success: boolean }>`.

```typescript
import { ExecutorContext } from '@nrwl/devkit';
import type { ExecutorContext } from '@nrwl/devkit';
import { exec } from 'child_process';
import { promisify } from 'util';

Expand All @@ -62,7 +62,7 @@ export interface EchoExecutorOptions {
export default async function echoExecutor(
options: EchoExecutorOptions,
context: ExecutorContext
) {
): Promise<{ success: boolean }> {
console.info(`Executing "echo"...`);
console.info(`Options: ${JSON.stringify(options, null, 2)}`);

Expand Down Expand Up @@ -187,7 +187,7 @@ export interface MultipleExecutorOptions {}
export default async function multipleExecutor(
options: MultipleExecutorOptions,
context: ExecutorContext
) {
): Promise<{ success: boolean }> {
const result = await Promise.race([
await runExecutor(
{ project: 'api', target: 'serve' },
Expand Down

1 comment on commit 7af7157

@vercel
Copy link

@vercel vercel bot commented on 7af7157 Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.