Skip to content
Discussion options

You must be logged in to vote

you can use extends playground

import "@typespec/http";
using Http;

interface Foo {
  one(): uint32;
  two(@path foo: uint32): uint32;
}

@route("foo")
interface Something extends Foo {}

note that interface extends is more like spread

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jbethune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants