# SurfaceAction

An event that may change which surface is open.

This is a type alias exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { SurfaceAction } from "@mapcairn/core";
 
type SurfaceAction = {
    readonly type: "openSheet";
    readonly section: SheetSection;
} | {
    readonly type: "closeSurface";
} | {
    readonly type: "openSearch";
} | {
    readonly type: "startMeasure";
} | {
    readonly type: "stopMeasure";
} | {
    readonly type: "startDraw";
} | {
    readonly type: "stopDraw";
} | {
    readonly type: "startDirections";
} | {
    readonly type: "stopDirections";
} | {
    readonly type: "dropPin";
} | {
    readonly type: "clearPin";
} | {
    readonly type: "setDetent";
    readonly detent: SheetDetent;
} | {
    readonly type: "escape";
} | {
    readonly type: "blurSearch";
};
```

## See also

- [`SheetSection`](https://docs.mapcairn.com/api/core/SheetSection.md)
- [`SheetDetent`](https://docs.mapcairn.com/api/core/SheetDetent.md)

Source: [packages/core/src/surface/surface.ts:94](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/surface/surface.ts#L94)
