Skip to content

Commit

Permalink
fix: some merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Aug 28, 2024
1 parent 68601a9 commit c7a2ded
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion packages/astro/src/types/public/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { UserConfig as OriginalViteUserConfig, SSROptions as ViteSSROptions
import type { RemotePattern } from '../../assets/utils/remotePattern.js';
import type { AssetsPrefix } from '../../core/app/types.js';
import type { AstroConfigType } from '../../core/config/schema.js';
import type { REDIRECT_STATUS_CODES } from '../../core/constants.js';
import type { Logger, LoggerLevel } from '../../core/logger/core.js';
import type { EnvSchema } from '../../env/schema.js';
import type { AstroIntegration } from './integrations.js';
Expand All @@ -22,7 +23,7 @@ export interface ImageServiceConfig<T extends Record<string, any> = Record<strin

export type RuntimeMode = 'development' | 'production';

export type ValidRedirectStatus = 300 | 301 | 302 | 303 | 304 | 307 | 308;
export type ValidRedirectStatus = (typeof REDIRECT_STATUS_CODES)[number];

export type RedirectConfig =
| string
Expand Down
10 changes: 5 additions & 5 deletions packages/astro/src/types/public/context.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { z } from 'zod';
import type {
ActionAccept,
ActionClient,
ActionInputSchema,
ActionReturnType,
} from '../../actions/runtime/virtual/server.js';
import type { SUPPORTED_MARKDOWN_FILE_EXTENSIONS } from '../../core/constants.js';
Expand Down Expand Up @@ -140,7 +140,7 @@ export interface AstroGlobal<

/**
* The route currently rendered. It's stripped of the `srcDir` and the `pages` folder, and it doesn't contain the extension.
*
*
* ## Example
* - The value when rendering `src/pages/index.astro` will `index`.
* - The value when rendering `src/pages/blog/[slug].astro` will `blog/[slug]`.
Expand Down Expand Up @@ -273,7 +273,7 @@ interface AstroSharedContext<
*/
getActionResult: <
TAccept extends ActionAccept,
TInputSchema extends ActionInputSchema<TAccept>,
TInputSchema extends z.ZodType,
TAction extends ActionClient<unknown, TAccept, TInputSchema>,
>(
action: TAction,
Expand All @@ -283,7 +283,7 @@ interface AstroSharedContext<
*/
callAction: <
TAccept extends ActionAccept,
TInputSchema extends ActionInputSchema<TAccept>,
TInputSchema extends z.ZodType,
TOutput,
TAction extends
| ActionClient<TOutput, TAccept, TInputSchema>
Expand Down Expand Up @@ -518,5 +518,5 @@ export interface APIContext<
* - The value when rendering `src/pages/blog/[slug].astro` will `blog/[slug]`.
* - The value when rendering `src/pages/[...path].astro` will `[...path]`.
*/
routePattern: string
routePattern: string;
}
2 changes: 1 addition & 1 deletion packages/astro/src/types/public/elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface AstroComponentDirectives extends Astro.ClientDirectives {

export interface AstroClientDirectives {
'client:load'?: boolean;
'client:idle'?: boolean;
'client:idle'?: IdleRequestOptions | boolean;
'client:media'?: string;
'client:visible'?: ClientVisibleOptions | boolean;
'client:only'?: boolean | string;
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/types/public/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export type HookParameters<
export interface BaseIntegrationHooks {
'astro:config:setup': (options: {
config: AstroConfig;
command: 'dev' | 'build' | 'preview';
command: 'dev' | 'build' | 'preview' | 'sync';
isRestart: boolean;
updateConfig: (newConfig: DeepPartial<AstroConfig>) => AstroConfig;
addRenderer: (renderer: AstroRenderer) => void;
Expand Down

0 comments on commit c7a2ded

Please sign in to comment.